Gradle error while building

How do i solve this error

Configuration on demand is an incubating feature.


2[stderr]

FAILURE:


3[stderr]

Build failed with an exception.


4[stderr]

  • What went wrong:

5[stderr]

A problem occurred configuring root project ‘android-shell-app’.


6[stderr]

Could not resolve all artifacts for configuration ‘:classpath’.


7[stderr]

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


8[stderr]

 Required by:

9[stderr]

     project :

10[stderr]

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

11[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'.

12[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

13[stderr]

  • Try:

14[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.


15[stderr]


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)

I have this problem too in my build.

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’.

1 Like

Do you have any solution

Mine was working three days ago

I have not solution

I am facing the same issue!

1 Like

i think it’s from bintray server, cannot access https://dl.bintray.com/

just wait from them… haaa

I have the same problem , any solutions plz !

We just deployed a partial fix, it should fix the issue at least for the latest SDKs, if you are still seeing the issue please post which sdks are affected.

1 Like

42.0.0 build ok

The issue arrises from the fact that the file hosting service Bintray has been sunset: https://isdown.app/integrations/bintray.

The team is working on a permanent fix.
For now, you can run npm install -g turtle-cli to try the patch.

I can confirm that the patch works for SDK 42.0.0