Expo Build Fails (expo build:android)

I am using Expo SDK 40, expo CLI 4.1.4 and a managed workflow.
When I try to build my app using expo build:android, it fails while running gradle and gives me this error:

[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Could not determine the dependencies of task ':app:compileReleaseJavaWithJavac'.
[stderr] > Could not resolve all task dependencies for configuration ':app:releaseCompileClasspath'.
[stderr]    > Could not resolve com.github.Raizlabs.DBFlow:dbflow-core:4.2.4.
[stderr]      Required by:
[stderr]          project :app
[stderr]       > Could not resolve com.github.Raizlabs.DBFlow:dbflow-core:4.2.4.
[stderr]          > Could not get resource 'https://google.bintray.com/exoplayer/com/github/Raizlabs/DBFlow/dbflow-core/4.2.4/dbflow-core-4.2.4.pom'.
[stderr]             > Could not HEAD 'https://google.bintray.com/exoplayer/com/github/Raizlabs/DBFlow/dbflow-core/4.2.4/dbflow-core-4.2.4.pom'. Received status code 502 from server: Bad Gateway
[stderr]    > Could not resolve com.github.Raizlabs.DBFlow:dbflow-core:4.2.4.
[stderr]      Required by:
[stderr]          project :app > host.exp.exponent:expoview:40.0.0
[stderr]          project :app > com.github.Raizlabs.DBFlow:dbflow:4.2.4
[stderr]       > Could not resolve com.github.Raizlabs.DBFlow:dbflow-core:4.2.4.
[stderr]          > Could not get resource 'https://google.bintray.com/exoplayer/com/github/Raizlabs/DBFlow/dbflow-core/4.2.4/dbflow-core-4.2.4.pom'.
[stderr]             > Could not HEAD 'https://google.bintray.com/exoplayer/com/github/Raizlabs/DBFlow/dbflow-core/4.2.4/dbflow-core-4.2.4.pom'. Received status code 502 from server: Bad Gateway
[stderr] * Try:
[stderr] Run with --stacktrace option to get the stack trace. Run with --info or --debug
[stderr]  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 8s
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:418:26)
    at ChildProcess.emit (events.js:311:20)
    at ChildProcess.EventEmitter.emit (domain.js:482:12)
    at maybeClose (internal/child_process.js:1021:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:286: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:201:45)
    at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:976:11)
    at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:396:5)
    at async runShellAppBuilder (/app/turtle/build/builders/android.js:95:9)
    at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:43:28)
    at async build (/app/turtle/build/jobManager.js:181:33)
    at async processJob (/app/turtle/build/jobManager.js:118:32)
    at async Object.doJob (/app/turtle/build/jobManager.js:49:5)
    at async main (/app/turtle/build/server.js:66:13)

How do I fix this?

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