cesardeazevedo / react-native-nested-scroll-view

react-native wrapper for android NestedScrollView
MIT License
89 stars 36 forks source link

Build errors on Android #10

Closed Jacse closed 7 years ago

Jacse commented 7 years ago

I get the following error when I try to run react-native run-android:

...
:app:processDebugManifest
:app:processDebugResources
/Users/jacoblauritzen/project/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'.

/Users/jacoblauritzen/project/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/jacoblauritzen/project/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'.

/Users/jacoblauritzen/project/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'.

:app:processDebugResources FAILED

It only happens when I've linked the project. Happens both on RN 0.49.5 and RN 0.50.3

cesardeazevedo commented 7 years ago

Hi, can you post the stack error and which react-native version are you using?

Jacse commented 7 years ago

@cesardeazevedo wow quick response. Yes, sorry - I pressed enter in the title by accident. Is what I've included now sufficient?

cesardeazevedo commented 7 years ago

I think it's a issue with the targetSdkVersion, can you post your build.gradle that i could see the targetSdkVersion and the com.android.support:appcompat and com.android.support:design dependencies?

Jacse commented 7 years ago
...
android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.jacoblauritzen.project"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 20007
        versionName "2.0.7"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
}
...
dependencies {
    compile project(':react-native-nested-scroll-view')
    compile project(':react-native-svg')
    compile project(':react-native-push-notification')
    compile project(':react-native-background-job')
    compile project(':bugsnag-react-native')
    compile project(':react-native-code-push')
    compile project(':react-native-splash-screen')
    compile project(':react-native-version-number')
    compile project(':react-native-google-analytics-bridge')
    compile project(':react-native-billing')
    compile project(':react-native-vector-icons')
    compile project(':react-native-fetch-blob')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.facebook.react:react-native:+"  // From node_modules
}
cesardeazevedo commented 7 years ago

can you try changing the compileSdkVersion to 24?

Jacse commented 7 years ago

Setting compileSdkVersion and targetSdkVersion to 25 and upgrading Gradle and the Gradle plugin seemed to do it. Thanks for the quick help!

cesardeazevedo commented 7 years ago

Glad that you got it.