Android build failed on gradlew step

android builds of all our apps crash at gradlew stage.
2 errors:

  • Plugin with id ‘maven’ not found.
  • compileSdkVersion is not specified. Please add it to build.gradle

Any ideas ?

gradlew log :

[stderr] 1: Task failed with an exception.
[stderr] -----------
[stderr] * Where:
[stderr] Build file '/home/expo/workingdir/build/node_modules/@unimodules/core/android/build.gradle' line: 3
[stderr] * What went wrong:
[stderr] A problem occurred evaluating project ':unimodules-core'.
[stderr] > Plugin with id 'maven' not found.
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > 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 ':expo'.
[stderr] > compileSdkVersion is not specified. Please add it to build.gradle
[stderr] * Try:
[stderr] > Run with --stacktrace option to get the stack trace.
[stderr] > Run with --info or --debug option to get more log output.
[stderr] > Run with --scan to get full insights.
[stderr] ==============================================================================
[stderr] * Get more help at https://help.gradle.org
[stderr] BUILD FAILED in 2m 20s

Hi!

Assuming you’re on a relatively recent version of the Expo SDK, you’ll want to remove any references to “unimodules” from your package.json. Also be sure to check the expo doctor output in your EAS Build log for any other issues.

1 Like

I removed unimodules, added expo/config-plugins in version 4.1.0 as requested by expo-doctor, deleted my .lock file and ran yarn
It’s working now

Thanks !

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.