Please provide the following:
- SDK Version: 45
- Add the appropriate “Tag” based on what Expo library you have a question on.
After migrating from SDK 44 to SDK 45 by following the guide, all my eas builds are returning the following errors after failing:
Running './gradlew :app:assembleRelease' in /home/expo/workingdir/build/android Downloading https://services.gradle.org/distributions/gradle-6.9-all.zip Unzipping /home/expo/.gradle/wrapper/dists/gradle-6.9-all/dooywd8nv05k16orzxge2b1bs/gradle-6.9-all.zip to /home/expo/.gradle/wrapper/dists/gradle-6.9-all/dooywd8nv05k16orzxge2b1bs Set executable permissions for: /home/expo/.gradle/wrapper/dists/gradle-6.9-all/dooywd8nv05k16orzxge2b1bs/gradle-6.9/bin/gradle Welcome to Gradle 6.9! Here are the highlights of this release: - This is a small backport release. - Java 16 can be used to compile when used with Java toolchains - Dynamic versions can be used within plugin declarations - Native support for Apple Silicon processors For more details see https://docs.gradle.org/6.9/release-notes.html To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/6.9/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build [stderr] FAILURE: Build failed with an exception. [stderr] * Where: [stderr] Script '/home/expo/workingdir/build/node_modules/react-native/react.gradle' line: 41 [stderr] * What went wrong: [stderr] A problem occurred configuring project ':app'. [stderr] > Could not find matching constructor for: java.io.File(File) [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 https://help.gradle.org [stderr] BUILD FAILED in 42s Error: Gradle build failed with unknown error. Please see logs for the "Run gradlew" phase.
So the main error is regarding the File(…) constructor that cannot be found.
> Could not find matching constructor for: java.io.File(File)
I already ran
$ expo doctor many times & all my dependencies are satisfying.
I am not sure if I missed something during the migration.