tipsi / tipsi-twitter

React native module for twitter API
MIT License
29 stars 10 forks source link

android: Build failed when linking the module #22

Open bacancy-swaroopa opened 6 years ago

bacancy-swaroopa commented 6 years ago

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 commented 6 years ago

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

bacancy-swaroopa commented 6 years ago

@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 commented 6 years ago

@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 commented 6 years ago

@isnifer okay I will try this

bacancy-swaroopa commented 6 years ago

@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