Getting “verifyReleaseResources” error after upgrading React Native

前端 未结 4 1197
迷失自我
迷失自我 2021-01-03 18:28

I\'m trying to upgrade an application to React Native 0.57.1. I think I\'ve followed all the steps, upgraded all the right files, yet I\'m still getting an error that I cann

4条回答
  •  半阙折子戏
    2021-01-03 18:43

    Reason for the error:

    You have installed react-native-document-picker as a dependency, And the reason for this error is that the configurations of your android/app/build.gradle and node_modules/react-native-document-picker/android/build.gradle mismatch.

    Solution

    1. Navigate to node_modules/react-native-document-picker/android/build.gradle
    2. Edit and keep the compileSdkVersion buildToolsVersion minSdkVersion targetSdkVersion same as you have in android/app/build.gradle
    3. Sync the project again.
    4. Run ./gradlew assembleRelease from the terminal.

提交回复
热议问题