Without changing anything about the code, I cannot build android anymore.
The following error happens when running ./gradlew clean:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-push-notification'.
> Could not find common.jar (android.arch.core:common:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/core/common/1.0.0/common-1.0.0.jar
What could be the issue here?
react-native-cli: 2.0.1
react-native: 0.51.0
[email protected]
same issue but instead of common.jar it is runtime.jar for me
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-push-notification'.
> Could not find runtime.jar (android.arch.lifecycle:runtime:1.0.0).
Searched in the following locations:
https://jcenter.bintray.com/android/arch/lifecycle/runtime/1.0.0/runtime-1.0.0.jar
I have the same prob猫me,
FAILURE: Build failed with an exception.
can anyone please help us to resolve this issue. thanks.
same issue
same issue
same issue
I am facing the same issue. I uninstalled 'react-native-push-notification' but now the same issues occurs with 'react-native-google-place-picker'. Any immediate help would be appreciated
same issue with runtime.jar
Seems like bintray has some problem with their files, you can change your android/build.gradle file to fix it temporarly and add another source to download from:
allprojects {
repositories {
mavenLocal()
maven { url 'https://maven.google.com' } <-- add this
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}
}
Thanks to this response
@FreddyPoly I have done that app build but can't start the app it shows "Unfortunately, "App name" has stopped."
@FreddyPoly Your solution works for me. Many Thanks
@FreddyPoly Your workaround solved the issue for me two weeks back but it seems I'm getting jcenter releated build failures again. Any ideas?
Download https://jcenter.bintray.com/android/arch/lifecycle/common/1.0.0/common-1.0.0.jar
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':app'.
+1 Please fix this issue.
The order of repositories is very important. You'll want to make sure that jcenter() is below your maven listings.
By ordering your repositories like this, you're essentially pulling libraries from maven first, then your local node_modules directory and then anything that's not in those two will be pulled from jcenter.
@joshuapinter Thank you for that snippet of information. That made a huge difference for me :)
Most helpful comment
Seems like bintray has some problem with their files, you can change your
android/build.gradlefile to fix it temporarly and add another source to download from:Thanks to this response