webyonet / react-native-android-location-services-dialog-box

React Native Android Location Services Dialog Box
MIT License
182 stars 50 forks source link

Could not find support-v4.jar (com.android.support:support-v4:26.1.0). #62

Closed rusliabdulgani closed 6 years ago

rusliabdulgani commented 6 years ago

i just upgrade to react native 0.56.0 then i found this error.

`Could not resolve all files for configuration ':react-native-android-location-services-dialog-box:debugCompileClasspath'.

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 `

my current project:

There is no update for react native 0.56.0 ? cause could not find also in jcenter

webyonet commented 6 years ago

@rusliabdulgani buildToolsVersion and compileSdkVersion needs to be synchronized in every module. the easiest way to do this is to use Android Studio.

for manual change: node_modules/react-native-android-location-services-dialog-box/android/build.gradle

android {
    compileSdkVersion 26 // here
    buildToolsVersion "26.1.0" // here

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 23
    }
}
webyonet commented 6 years ago

duplicate issue #60