Expo build:android Getting Error Failed to list versions for com.google.android.gms:play-services-ads-identifier.

Expo CLI 3.1.2 environment info:
System:
OS: Windows 10
Binaries:
Yarn: 1.17.3 - C:\Users\Ambition\AppData\Roaming\npm\yarn.CMD
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312

> Task :unimodules-core:compileReleaseJavaWithJavac

[stderr]

Note: Some input files use unchecked or unsafe operations.

[stderr]

Note: Recompile with -Xlint:unchecked for details.

[stderr]

FAILURE: Build failed with an exception.

[stderr]

* What went wrong:

[stderr]

Could not resolve all files for configuration ':app:releaseCompileClasspath'.

[stderr]

> Could not resolve com.google.android.gms:play-services-ads-identifier:[15.0.1,16.0.0).

[stderr]

  Required by:

[stderr]

      project :app > com.google.android.gms:play-services-ads:15.0.1

[stderr]

   > Failed to list versions for com.google.android.gms:play-services-ads-identifier.

[stderr]

      > Unable to load Maven meta-data from https://jcenter.bintray.com/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml.

[stderr]

         > Could not get resource 'https://jcenter.bintray.com/com/google/android/gms/play-services-ads-identifier/maven-metadata.xml'.

[stderr]

            > org.apache.http.ssl.SSLInitializationException: /usr/lib/jvm/java-8-openjdk-amd64/lib/security/cacerts (No such file or directory)

[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 1m 6s
266 actionable tasks: 266 executed
Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
    at Object.onceWrapper (events.js:317:30)
    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)
    ...
    at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
    at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:233:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:812:11)
    at <anonymous>

This looks like a problem verifying the jcenter.bintray.com server’s SSL certificate because of a lack of CA certs in the Java installation. How did you get this error exactly? i.e. what command did you run or did you build locally etc?

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