Expo build:android with error

When executing the ‘running gradle’ step, I see this error

Parallel execution with configuration on demand is an incubating feature.
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] A problem occurred configuring root project ‘android-shell-app’.
[stderr] > Could not resolve all files for configuration ‘:classpath’.
[stderr] > Could not find com.google.gms:google-services:3.2.1.
[stderr] Searched in the following locations:
[stderr] https ://dl.google.com/dl/android/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.pom
[stderr] https ://dl.google.com/dl/android/maven2/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
[stderr] https ://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.pom
[stderr] https ://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
[stderr] Required by:
[stderr] project :
[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 5s
Error: Process exited with non-zero code: 1
at ChildProcess.child.on (/app/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:915:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

3 Likes

I’m seeing this error as well using turtle cli.

It looks like there’s an issue with the Google maven repository for this dependency.

It’s already resolved on Expo builders: Expo Status - Android standalone apps failing to build (SDK 30 and 31)

For turtle-cli you probably need to remove downloaded SDK and run turtle setup:android again. Let us know if this helps you.

Same error

Seeing the same error as well

Parallel execution with configuration on demand is an incubating feature.
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] A problem occurred configuring root project 'android-shell-app'.
[stderr] > Could not resolve all files for configuration ':classpath'.
[stderr]    
[stderr] > Could not find google-services.jar (com.google.gms:google-services:3.2.1).
[stderr]      Searched in the following locations:
[stderr]          https://jcenter.bintray.com/com/google/gms/google-services/3.2.1/google-services-3.2.1.jar
[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 4s
Error: Process exited with non-zero code: 1
    at ChildProcess.child.on (/app/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

same here

Solved

Hey everyone,

As Jakub mentioned earlier, we had an incident with our Android builders that you can read about here: Expo Status - Android standalone apps failing to build (SDK 30 and 31) It has since been resolved. Can you let me know if you are able to or have already built your APK? Nonetheless, sorry for the inconvenience!

Cheers,

Adam

I’m still not able to get this working with turtle. I’m not sure what “remove downloaded SDK” means.

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