Closed youngjuning closed 1 year ago
$ cd android && ./gradlew assembleRelease
$ cd android && ./gradlew installRelease
$ cd android && ./gradlew assembleReleaseStaging
$ cd android && ./gradlew installReleaseStaging
"devStaging": "react-native run-android --appIdSuffix releaseStaging",
react-native-community/react-native-webview#198
问题
出现原因
使用 Android Studio 编译时报错 或 运行
react-native run-android --variant=staging
时报错解决办法
修改
android/app/build.gradle
,修改指导有两个:buildConfigField
,其他配置一样matchingFallbacks = ['release', 'debug']
避免 Android Studio 编辑出错(不用担心,后边我们会说如何使用)