question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android build/installation error: Cannot download from bintray

See original GitHub issue

After following the docs and installing the library I try to build and get the following error, seems bintray has been sunset:

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.squareup.okhttp3:okhttp:3.12.13.
     Required by:
         project :app > com.facebook.react:react-native:0.64.0
         project :app > com.facebook.react:react-native:0.64.0 > com.squareup.okhttp3:okhttp-urlconnection:3.12.12
      > Skipped due to earlier error
   > Could not resolve app.notifee:core:+.
     Required by:
         project :app > project :notifee_react-native
      > Failed to list versions for app.notifee:core.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/app/notifee/core/maven-metadata.xml.
            > Could not get resource 'https://jcenter.bintray.com/app/notifee/core/maven-metadata.xml'.
               > Could not GET 'https://jcenter.bintray.com/app/notifee/core/maven-metadata.xml'. Received status code 502 from server: Bad Gateway
   > Could not resolve org.greenrobot:eventbus:3.2.0.
     Required by:
         project :app > project :notifee_react-native
      > Skipped due to earlier error
   > Could not resolve com.squareup.okhttp3:okhttp:3.12.13.
     Required by:
         project :app > project :notifee_react-native
      > Skipped due to earlier error

Stack: @notifee/react-native: 4.0.1 react-native: 0.64

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mikehardycommented, Jan 17, 2022

@MrShakes you can, you need to update react-native though, it’s out of control of this module. Use react-native 0.65 or greater. 0.66.4 is current now - https://react-native-community.github.io/upgrade-helper/

0reactions
mikehardycommented, Jan 19, 2022

All false positives from test fixtures and the like. jcenter is not in use. Notifee is jcenter-clean.


mike@osxvm:~/work/Invertase/notifee (main) % grep -r jcenter *
node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/cavy-native-reporter/android/build.gradle:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/@react-native-firebase/app/CHANGELOG.md:- **all, android:** purge jcenter() from android build ([2c6a6a8](https://github.com/invertase/react-native-firebase/commit/2c6a6a82ec363fd948ea880fd397acb886c97453))
node_modules/@notifee/tests-react-native/node_modules/@react-native-firebase/messaging/CHANGELOG.md:- **all, android:** purge jcenter() from android build ([2c6a6a8](https://github.com/invertase/react-native-firebase/commit/2c6a6a82ec363fd948ea880fd397acb886c97453))
node_modules/@notifee/tests-react-native/node_modules/jsc-android/README.md:        jcenter()
node_modules/@notifee/tests-react-native/node_modules/jsc-android/README.md:        jcenter()
packages/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
packages/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
packages/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
packages/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
tests_react_native/node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
tests_react_native/node_modules/@notifee/react-native/plugin/__tests__/fixtures/project.build.gradle:        jcenter()
tests_react_native/node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
tests_react_native/node_modules/@notifee/react-native/plugin/__tests__/__snapshots__/androidProjectBuild.test.ts.snap:        jcenter()
tests_react_native/node_modules/cavy-native-reporter/android/build.gradle:        jcenter()
tests_react_native/node_modules/@react-native-firebase/app/CHANGELOG.md:- **all, android:** purge jcenter() from android build ([2c6a6a8](https://github.com/invertase/react-native-firebase/commit/2c6a6a82ec363fd948ea880fd397acb886c97453))
tests_react_native/node_modules/@react-native-firebase/messaging/CHANGELOG.md:- **all, android:** purge jcenter() from android build ([2c6a6a8](https://github.com/invertase/react-native-firebase/commit/2c6a6a82ec363fd948ea880fd397acb886c97453))
tests_react_native/node_modules/jsc-android/README.md:        jcenter()
tests_react_native/node_modules/jsc-android/README.md:        jcenter()
mike@osxvm:~/work/Invertase/notifee (main) % 

How to fix your project https://blog.gradle.org/jcenter-shutdown Some react-native specific information https://github.com/react-native-community/discussions-and-proposals/issues/331#issuecomment-1013339743

Proof it works, even as far back as react-native 0.61.2 (though that was a mess: metro-react-native-babel-preset has issues, and you have to use Xcode 12.4, and who knows what incompatibilities that has with android 12 / iOS15 etc…)

https://github.com/mikehardy/rnfbdemo/blob/b3079ef2d394bb229e9a97dc1062e6cc9787c434/notifee-demo.sh

This issue is closed from a notifee perspective. jcenter is not in this module. It is out of our control.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to download dependencies from jcenter.bintray.com
Gradle distro downloads just fine, and only failing with jcenter urls. ... went wrong: [17:13:07]: ▸ A problem occurred configuring root project 'android'....
Read more >
Gradle sync failed - Stack Overflow
The problem that I was facing is that the android studio was not able to download Gradle. Such problems always occur when ando0rid...
Read more >
Latest topics - Bitrise Discussions
Bitrise build installation error in iPhone ... Incorrect *aligned.apk download path on public url page ... Gradle fail to install jcenter dependencies.
Read more >
Dependency from jcenter.bintray.com failed - Gradle Forums
When we are building android app using gradle, getting below error. Failed to list versions for com.android.support:support-v4.
Read more >
Android download problem: failed to install/update
Updates to Google Play Store can cause problems when you install or update Android applications. The app download process gets stuck and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found