Closed wayne1203 closed 6 years ago
Hi @wayne1203 ! Try to set all support libraries to the same version first. for example:
Could not find com.android.support:appcompat-v7:26.1.0.
Could not find com.android.support:support-v4:26.1.0.
Could not find com.android.support:design:26.1.0.
Could not find com.android.support:support-annotations:26.1.0.
Could not find com.android.support:support-v4:26.1.0.
set
compileSdkVersion 26
buildToolsVersion "26.0.2"
That bug are from 27 version of some support library. If that does not help, post your dependencies and androis parts of build.gradle file.
@paynd I think set to 26 is not help in my case. Changed those of com.android.support.xxx to 26 but error(s) still remain
dependencies {
compile project(':tipsi-stripe')
compile project(':react-native-youtube')
compile project(':react-native-push-notification')
compile project(':react-native-vector-icons')
compile project(':react-native-device-info')
compile project(':react-native-image-crop-picker')
compile project(':react-native-sound')
compile project(':react-native-audio')
compile project(':react-native-localization')
compile project(':react-native-image-resizer')
compile project(':@yfuks/react-native-action-sheet')
compile project(':react-native-fetch-blob')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:26.1.0" <- 23.0.1 before
compile "com.android.support:support-annotations:26.1.0" <- Add Manually
compile "com.android.support:support-annotations:26.1.0" <- Add Manually
compile "com.facebook.react:react-native:+" // From node_modules
}
@wayne1203 can you post the full stacktrace of
No resource found that matches the given name
error? That issue looks very similar to that one
@paynd Sure, Thanks for your help. Um... I'm not using the facebook-sdk, seems like that is not the same issue?
* What went wrong:
A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified
testApps:app:unspecified > testApps:tipsi-stripe:unspecified
> Could not find com.android.support:support-annotations:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
Required by:
testApps:app:unspecified
> Could not find com.android.support:support-v4:26.1.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.1.0/support-v4-26.1.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:react-native-push-notification:unspecified
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:react-native-audio:unspecified
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified > com.facebook.react:react-native:0.52.0
> Could not find com.android.support:design:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.0.0/design-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/design/27.0.0/design-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/design/27.0.0/design-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.stripe:stripe-android:6.0.0
> Could not find com.android.support:support-annotations:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.stripe:stripe-android:6.0.0
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.stripe:stripe-android:6.0.0
> Could not find com.android.support:appcompat-v7:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/appcompat-v7/27.0.0/appcompat-v7-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:react-native-image-crop-picker:unspecified > com.github.yalantis:ucrop:2.2.1-native
> Could not find com.android.support:support-annotations:27.0.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/support-annotations/27.0.0/support-annotations-27.0.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.github.tipsi:CreditCardEntry:1.4.8.9 > com.android.support:support-compat:25.3.1
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.github.tipsi:CreditCardEntry:1.4.8.9 > com.android.support:support-core-utils:25.3.1
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.github.tipsi:CreditCardEntry:1.4.8.9 > com.android.support:support-core-ui:25.3.1
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.github.tipsi:CreditCardEntry:1.4.8.9 > com.android.support:support-media-compat:25.3.1
> Could not find com.android.support:support-v4:26.1.0.
Searched in the following locations:
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.1.0/support-v4-26.1.0.pom
file:/Users/wayne/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
file:/Users/wayne/Documents/ReactNative/testApps/android/sdk-manager/com/android/support/support-v4/26.1.0/support-v4-26.1.0.jar
Required by:
testApps:app:unspecified > testApps:tipsi-stripe:unspecified > com.google.android.gms:play-services-wallet:10.2.6 > com.google.android.gms:play-services-basement:11.0.4
@wayne1203 You post two issues:
For first one you can try to add
allprojects {
repositories {
maven { url 'https://maven.google.com' }
}
}
to project level build.gradle Look at this example and this thread.
@paynd The first problem has fixed when I added repositories to build.gradle but the second issue occurred. Fortunately, the second issue fixed by changed the version of compileSdkVersion, buildToolsVersion and com.android.support:appcompat-v7 to 26.
Thank you for your help.
iOS is work fine but Android is not work. I linked the library and tried clean and build again but it's not help. I'm using compileSdkVersion 23 but the error: Could not find com.android.support:appcompat-v7:27.0.0. Could not find com.android.support:support-v4:26.1.0. Could not find com.android.support:design:27.0.0. Could not find com.android.support:support-annotations:27.0.0. Could not find com.android.support:support-v4:26.1.0.
After that, I tried change the compileSdkVersion 26 and meet the requirement, but I will get a dozen "No resource found that matches the given name", such as: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'