Android build failing - EAS!


Our android build all of the sudden starts failing. It was working a few months ago. Quick good search shows something along the lines of compileSdkVersion (for android), but I guess we don’t have the ability to change that when using EAS build.

[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:checkReleaseAarMetadata'.
[stderr] > A failure occurred while executing
[stderr]    > The minCompileSdk (31) specified in a
[stderr]      dependency's AAR metadata (META-INF/com/android/build/gradle/
[stderr]      is greater than this module's compileSdkVersion (android-30).
[stderr]      Dependency: androidx.browser:browser:1.4.0.
[stderr]      AAR metadata file: /root/.gradle/caches/transforms-3/53c5054d7a43289a3d2adc015291b137/transformed/browser-1.4.0/META-INF/com/android/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] * Get more help at
[stderr] BUILD FAILED in 1m 49s
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
67 actionable tasks: 67 executed
Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.

Any tips or assistance would be appreciated.

it looks like you are using a library that requires minCompileSdk version of 31. you should downgrade that library to the version you were previously. look at in git history to your last successful build to see what version