EAS Build Fails on Project Getting Back to Managed Flow

I want to work with managed flow, so I deleted android and ios folders in the bare project. Now I’m trying to eas build, but I’m getting these errors:

A problem occurred evaluating project ':app'.

38[stderr]

> path may not be null or empty string. path=''
A problem occurred configuring project ':app'.

48[stderr]

> compileSdkVersion is not specified. Please add it to build.gradle

[stderr]

FAILURE: Build completed with 2 failures.

31[stderr]

1:

32[stderr]

Task failed with an exception.

33[stderr]

-----------

34[stderr]

* Where:

35[stderr]

Build file '/home/expo/workingdir/build/apps/android/app/build.gradle' line: 21

36[stderr]

* What went wrong:

37[stderr]

A problem occurred evaluating project ':app'.

38[stderr]

> path may not be null or empty string. path=''

39[stderr]

* Try:

40[stderr]

> Run with --stacktrace option to get the stack trace.

41[stderr]

> Run with --info or --debug option to get more log output.

42[stderr]

> Run with --scan to get full insights.

43[stderr]

==============================================================================

44[stderr]

2: Task failed with an exception.

45[stderr]

-----------

46[stderr]

* What went wrong:

47[stderr]

A problem occurred configuring project ':app'.

48[stderr]

> compileSdkVersion is not specified. Please add it to build.gradle

49[stderr]

* Try:

50[stderr]

> Run with --stacktrace option to get the stack trace.

51[stderr]

> Run with --info or --debug option to get more log output.

52[stderr]

> Run with

53[stderr]

--scan to get full insights.

54[stderr]

==============================================================================

55[stderr]

* Get more help at https://help.gradle.org

56[stderr]

BUILD FAILED in 1m 30s

57

5 actionable tasks: 5 executed

58

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.