Hey, am having this error when I try to build for android with eas.
[stderr] FAILURE: Build completed with 2 failures.
[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Build file '/root/workingdir/build/android/app/build.gradle' line: 86
[stderr] * What went wrong:
[stderr] > String index out of range: 0
[stderr] A problem occurred evaluating project ':app'.
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] 2: Task failed with an exception.
[stderr] -----------
[stderr] * What went wrong:
[stderr] A problem occurred configuring project ':app'.
[stderr] > compileSdkVersion is not specified. Please add it to build.gradle
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 29s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Running expo build
for aab or apk works fine, but it fails with eas.
I have searched for similar issues but most solutions are on react native not eas.
I am on a managed workflow, and my eas-cli
version is 0.46.0.
Update:
I think I should make mention of one of the recommended solutions from the error log i.e compileSdkVersion is not specified. Please add it to build.gradle
, if really this is the solution where should I add it please? is it in eas.json.build
?
Thanks in advance.