"react-native-mauron85-background-geolocation": "0.4.1""react-native": "0.50.3"build.gradle compileSdkVersion 23, buildToolsVersion "23.0.2"
Can not build project, this error shown
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
> A problem occurred configuring project ':react-native-mauron85-background-geolocation'.
> Could not find support-v4.jar (com.android.support:support-v4:26.1.0).
Searched in the following locations:
https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
@mauron85 Any thought or may be suggestion?
I am facing the same problem. What I've found so far is that https://jcenter.bintray.com/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar return a 404 and the support-v4/ directory has only a maven-metadata.xml file.
If I move jcenter() after the other repos, the app builds but I'm not sure this a solution since I still cannot get a working Android build.
@mauron85 still not working brother :(
Try https://github.com/airbnb/lottie-react-native/issues/203#issuecomment-334476435
It works for me finally
I can confirm that I could get my build moving jcenter() AFTER google() repo.
@lfiorini @mauron85 @catcheshirecat after apply you guys tip I found another error which similar to #210 but here is my detail
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:font
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontStyle
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontVariationSettings
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:fontWeight
ERROR: In <declare-styleable> FontFamilyFont, unable to find attribute android:ttcIndex
:react-native-mauron85-background-geolocation:processReleaseResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-mauron85-background-geolocation:processReleaseResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
already stuck here for weeks. please help 💯
Thank you so much!
Build success by https://github.com/mauron85/react-native-background-geolocation/issues/116#issuecomment-340258780
move jcenter() after maven(). It works for me.
Dont know why...
but this works for me...
allprojects {
repositories {
mavenLocal()
maven { url 'https://maven.google.com' }
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
find out that this a generel problem with the version 0.56.0 of react
native. try react-native init --version="0.55.4"
Tarun Purohit notifications@github.com schrieb am Do., 19. Juli 2018,
09:21:
gfgf
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/mauron85/react-native-background-geolocation/issues/216#issuecomment-406180163,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AYh5FHxLnkuK_DUp5NPn1F6LQpnJTuhjks5uIDOVgaJpZM4UlqgJ
.
@pacozaa
please try @efajardolopez solution.
it works for me
Thank you @efajardolopez, you saved my day.
Could you share us why putting jcenter last does the trick?
Thank you senpai
@efajardolopez solution works for me too!!! thx brother
@lfiorini It's worked for me. Move jcenter() to bottom.
Thanks a lot @efajardolopez it works perfectly for me
I just added following code in Project level gradle and it's working perfectly. My maven { url "https://maven.google.com" } was missing
allprojects {
repositories {
google()
jcenter()
maven { url "https://maven.google.com" }
}
}
Thanks a lot @efajardolopez it works perfectly for me
jcenter after google, yep!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed, because it has not had recent activity. If you believe this issue shouldn't be closed, please reopen or write down a comment requesting issue reopening with explanation why you think it's important. Thank you for your contributions.
Most helpful comment
move jcenter() after maven(). It works for me.