Build fails - problem occurred configuring project ':expoview'

Build fails with this error.

Download https://repo.maven.apache.org/maven2/com/github/javaparser/javaparser-parent/2.4.0/javaparser-parent-2.4.0.pom
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] A problem occurred configuring project ':expoview'.
[stderr] > Could not resolve all files for configuration ':expoview:classpath'.
[stderr]    > Could not resolve com.android.tools.build:gradle-core:2.1.2.
[stderr]      Required by:
[stderr]          project :expoview > com.jakewharton:butterknife-gradle-plugin:8.4.0 > com.android.tools.build:gradle:2.1.2
[stderr]       > Could not resolve com.android.tools.build:gradle-core:2.1.2.
[stderr]          > Could not get resource 'https://maven.fabric.io/public/com/android/tools/build/gradle-core/2.1.2/gradle-core-2.1.2.pom'.
[stderr]             > Could not GET 'https://maven.fabric.io/public/com/android/tools/build/gradle-core/2.1.2/gradle-core-2.1.2.pom'.
[stderr]                > Connect to maven.fabric.io:443 [maven.fabric.io/13.249.143.149] failed: connect timed out
[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 55s
Error: ./gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/app/node_modules/@expo/spawn-async/build/spawnAsync.js:51:23)
1 Like

Have the exact same issue!

I upgraded to the latest expo-cli and problem solved.
May have to upgrade expo SDK too since my project is on v 31.

1 Like

Yes, that fixed it. Thank you!

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