After upgrading EXPO from 41 to 42, I’m getting error when eas build.
Will be glad of any help. Thanks.
SDK 42.0.0
expo 4.12.1
eas-cli/0.31.1 win32-x64 node-v12.14.0
Windows 10
Terminal log
d:\expo\sm24>eas build
√ Select platform » Android
√ Linked to project @sendmoney24/sm24 (Log In — Expo)
File specified via “android.googleServicesFile” field in your app.json is not checked in to your repository and won’t be uploaded to the builder.
Use EAS Secret to pass all values that you don’t want to include in your version control. Learn more: Environment variables and secrets - Expo Documentation
If you are using that file for compatibility with the classic build service (expo build) you can silence this warning by setting GOOGLE_SERVICES_FILE in your build profile in eas.json to any non-falsy value.
√ Using remote Android credentials (Expo server)
√ Using Keystore from configuration: Build Credentials 4RksEVvlHf (default)
√ Compressed project files 15s (16.1 MB)
√ Uploaded to EAS 4s Learn more: fyi/eas-build-archive.md at main · expo/fyi · GitHub
Build details: Build Details — a22f3a33-b55b-4912-a1c3-4df0d1eea628 — Expo
Waiting for build to complete. You can press Ctrl+C to exit.
× Build failed
Android build failed:
Gradle build failed with unknown error. Please see logs for the “Run gradlew” phase.
Build Details log
Running ‘./gradlew :app:bundleRelease’ in /build/workingdir/build/android
Downloading https://services.gradle.org/distributions/gradle-6.8-all.zip
Unzipping /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8-all.zip to /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002
Set executable permissions for: /root/.gradle/wrapper/dists/gradle-6.8-all/9emh0d32e025cam7aasxcw002/gradle-6.8/bin/gradle
Welcome to Gradle 6.8!
Here are the highlights of this release:
- Faster Kotlin DSL script compilation
- Vendor selection for Java toolchains
- Convenient execution of tasks in composite builds
- Consistent dependency resolution
For more details see Gradle 6.8 Release Notes
To honour the JVM settings for this build a single-use Daemon process will be forked. See The Gradle Daemon.
Daemon will be stopped at the end of the build
[stderr] FAILURE: Build failed with an exception.
[stderr] * Where:
[stderr] Script ‘/build/workingdir/build/node_modules/@react-native-community/cli-platform-android/native_modules.gradle’ line: 231
[stderr] * What went wrong:
[stderr] A problem occurred evaluating script.
[stderr] > Calling[node, /build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/bin.js, config]
finished with an exception. Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object
[stderr] The current character read is ‘E’ with an int value of 69
[stderr] Unable to determine the current character, it is not a string, number, array, or object
[stderr] line number 1
[stderr] index number 0
[stderr] Error: ENOENT: no such file or directory, open ‘/build/workingdir/build/node_modules/react-native-webview/windows/ReactNativeWebView\ReactNativeWebView.vcxproj’ at Object.openSync (fs.js:476:3) at Object.readFileSync (fs.js:377:35) at Object.readProjectFile (/build/workingdir/build/node_modules/@react-native-windows/cli/lib-commonjs/config/configUtils.js:191:32) at Object.dependencyConfigWindows [as dependencyConfig] (/build/workingdir/build/node_modules/@react-native-windows/cli/lib-commonjs/config/dependencyConfig.js:116:49) at /build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:63:61 at Array.reduce () at getDependencyConfig (/build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:60:51) at Object.get react-native-webview [as react-native-webview] (/build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:135:18) at /build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/config/config.js:16:51 at Array.forEach ()
[stderr] ^. Output: Error: ENOENT: no such file or directory, open ‘/build/workingdir/build/node_modules/react-native-webview/windows/ReactNativeWebView\ReactNativeWebView.vcxproj’ at Object.openSync (fs.js:476:3) at Object.readFileSync (fs.js:377:35) at Object.readProjectFile (/build/workingdir/build/node_modules/@react-native-windows/cli/lib-commonjs/config/configUtils.js:191:32) at Object.dependencyConfigWindows [as dependencyConfig] (/build/workingdir/build/node_modules/@react-native-windows/cli/lib-commonjs/config/dependencyConfig.js:116:49) at /build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:63:61 at Array.reduce () at getDependencyConfig (/build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:60:51) at Object.get react-native-webview [as react-native-webview] (/build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js:135:18) at /build/workingdir/build/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/config/config.js:16:51 at Array.forEach ()
[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 13s
Error: Gradle build failed with unknown error. Please see logs for the “Run gradlew” phase.