Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

android: Build failed when linking the module #22

Open
bacancy-swaroopa opened this issue Apr 12, 2018 · 5 comments
Open

android: Build failed when linking the module #22

bacancy-swaroopa opened this issue Apr 12, 2018 · 5 comments

Comments

@bacancy-swaroopa
Copy link

Hi,

When I link up the project in android and run the it throws the following issue:

screen shot 2018-04-12 at 11 20 54 am

When I remove the linking then it is working fine

What I have to do to solve this issue can anyone suggest

@isnifer
Copy link
Contributor

isnifer commented Apr 12, 2018

@bacancy-swaroopa Hi! Please, post full text of an error, not a screenshot

@bacancy-swaroopa
Copy link
Author

@isnifer
..../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

..../android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

/Users/stellentsoft/Documents/bitbucket/intake/android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

......./android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

......./android/app/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

....../android/app/build/intermediates/res/merged/debug/values-v26/values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.

@isnifer
Copy link
Contributor

isnifer commented Apr 12, 2018

@bacancy-swaroopa check your android/app/build.gradle with our example — https://github.com/tipsi/tipsi-twitter/blob/master/example/android/app/build.gradle. Find diff and fix it.
Important lines:

compile "com.android.support:support-v4:26.1.0"
compile 'com.android.support:appcompat-v7:26.1.0'

And

repositories {
    maven {
        url 'https://maven.google.com/'
        name 'Google'
    }
}

Of course

@bacancy-swaroopa
Copy link
Author

@isnifer okay I will try this

@bacancy-swaroopa
Copy link
Author

@isnifer I tried but giving the same issue

dependencies {
compile project(':tipsi-twitter')
compile project(':react-native-fbsdk')
    compile(project(':react-native-firebase')) {
        transitive = false
    }
    compile (project(':react-native-device-info')){
        exclude group: "com.google.android.gms" // very important
      }
    compile project(':react-native-config')
    compile project(':react-native-i18n')
    compile 'com.google.firebase:firebase-core:11.8.0'
    compile 'com.google.firebase:firebase-auth:11.8.0'
    compile project(':react-native-vector-icons')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:26.1.0"
    compile "com.android.support:support-v4:26.1.0"
    compile "com.facebook.react:react-native:+"  // From node_modules
    compile(project(":react-native-google-signin")){
       exclude group: "com.google.android.gms" // very important
   }
   compile 'com.google.android.gms:play-services-auth:11.8.0' // should be at least 9.0.0
}

this is my dependencies

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants