I cant build my app

SDK Version: 42
Platforms(Android/iOS/web/all): Android

I want to build my app but always say “Build Failed”
THIS IS THE ERROR shown in the Build Details — ade4aeb3-04c0-4a52-9778-ead0610d2d05 — OneTapMarket — Expo

Configuration on demand is an incubating feature.

2[stderr]

FAILURE: Build failed with an exception.

3[stderr]

* What went wrong:

4[stderr]

A problem occurred configuring root project 'android-shell-app'.

5[stderr]

> Could not resolve all artifacts for configuration ':classpath'.

6[stderr]

   > Could not resolve com.diffplug.spotless:com.diffplug.spotless.gradle.plugin:5.14.1.

7[stderr]

     Required by:

8[stderr]

         project :

9[stderr]

      > Could not resolve com.diffplug.spotless:com.diffplug.spotless.gradle.plugin:5.14.1.

10[stderr]

         > Could not get resource 'https://dl.bintray.com/android/android-tools/com/diffplug/spotless/com.diffplug.spotless.gradle.plugin/5.14.1/com.diffplug.spotless.gradle.plugin-5.14.1.pom'.

11[stderr]

            > Could not HEAD 'https://dl.bintray.com/android/android-tools/com/diffplug/spotless/com.diffplug.spotless.gradle.plugin/5.14.1/com.diffplug.spotless.gradle.plugin-5.14.1.pom'. Received status code 502 from server: Bad Gateway

12[stderr]

* Try:

13[stderr]

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with 

14[stderr]

--scan to get full insights.

15[stderr]

* Get more help at https://help.gradle.org

16[stderr]

BUILD FAILED in 10s

17

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:421:26)
    at ChildProcess.emit (events.js:314:20)
    at ChildProcess.EventEmitter.emit (domain.js:483:12)
    at maybeClose (internal/child_process.js:1022:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287: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:985: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)

Hi @memarch20

There are a few other threads about this today. Here’s a message from one of the Expo team members about it:

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