cesardeazevedo / react-native-nested-scroll-view

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

Task :react-native-nested-scroll-view:verifyReleaseResources FAILED #39

Open Ismonh opened 4 years ago

Ismonh commented 4 years ago

Hi, I can't release my app with react-native-nested-scroll-view, When I do gradlew assembleRelease in my android app folder Result :

Execution failed for task :react-native-nested-scroll-view:verifyReleaseResources. A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade Android resource linking failed C:\Users****.gradle\caches\transforms-2\files-2.1\2c14eda98bc264ccf67c15fd0c8b9165\appcompat-1.0.2\res\values-v28\values-v28.xml:5:5-8:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

  C:\Users\****\.gradle\caches\transforms-2\files-2.1\2c14eda98bc264ccf67c15fd0c8b9165\appcompat-1.0.2\res\values-v28\values-v28.xml:9:5-12:13: AAPT: error: resource android:attr/dialogCornerRadius not found.

  C:\Users\****\.gradle\caches\transforms-2\files-2.1\185f5b9efd7c173d0ffd24d204b22e91\core-1.0.1\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/fontVariationSettings not found.

  C:\Users\****\.gradle\caches\transforms-2\files-2.1\185f5b9efd7c173d0ffd24d204b22e91\core-1.0.1\res\values\values.xml:57:5-88:25: AAPT: error: resource android:attr/ttcIndex not found.

My config : Grabble buildToolsVersion = "28.0.3" minSdkVersion = 16 compileSdkVersion = 28 targetSdkVersion = 28 React "react": "16.9.0", "react-native": "0.61.2",

Have you a idea, wath is wrong ?

Moke96 commented 4 years ago

I got the same issue, did you solve it?

Ismonh commented 4 years ago

I got the same issue, did you solve it?

I have remove the package of my project, and now I use native props nestedScrollEnable on react-native scrollview https://facebook.github.io/react-native/docs/scrollview#nestedscrollenabled

niksudan commented 4 years ago

I found a solution to this problem!

I had to add the following to my android/build.gradle:

subprojects {
    afterEvaluate {project ->
        if (project.hasProperty("android")) {
            android {
                compileSdkVersion compileSdkVersion
                buildToolsVersion "$buildToolsVersion"
            }
        }
    }
}

Source: https://github.com/wix/react-native-navigation/issues/4671#issuecomment-468546146