zendesk / react-native-sunshine-conversations

React Native wrapper for Smooch.io
MIT License
36 stars 26 forks source link

Problems Running on Android #21

Closed jnrepo closed 7 years ago

jnrepo commented 7 years ago

Things work great on iOS, but when I try to run after installing the module on Android we seem to get

/Users/bob/projects/test/node_modules/react-native-smooch/android/build/intermediates/res/merged/release/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'.

/Users/bob/projects/test/node_modules/react-native-smooch/android/build/intermediates/res/merged/release/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/bob/projects/test/node_modules/react-native-smooch/android/build/intermediates/res/merged/release/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'.

/Users/bob/projects/test/node_modules/react-native-smooch/android/build/intermediates/res/merged/release/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'.

These are some of my settings in my Manifest

compileSdkVersion 23
buildToolsVersion '23.0.3'

targetSdkVersion 23

dependencies {
    compile 'com.android.support:appcompat-v7:23.0.2'
    ...
}

We have also tried using compileSdkVersion 24 and 25 as well.

joshjo commented 7 years ago

Hi @jnrepo, was happening to me also with version 23.0.1. So, I changed the buildToolsVersion in node_modules/react-native-navigation/android/app/build.gradle, to 25.0.2 and it works. Previously I Installed the 25.0.2 sdk tools and also the android repository.

BigGillyStyle commented 7 years ago

This solved my problem: https://github.com/oblador/react-native-keychain/issues/68#issuecomment-304836725