react-native-clear-app-cache
react-native-clear-app-cache copied to clipboard
项目link然后react-native run-android运行报错
- What went wrong: Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application@allowBackup value=(false) from AndroidManifest.xml:11:7-34 is also present at [:react-native-clear-app-cache] AndroidManifest.xml:12:9-35 value=(true). Suggestion: add 'tools:replace="android:allowBackup"' to
element at AndroidManifest.xml:7:5-24:19 to override.
-
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
-
Get more help at https://help.gradle.org
BUILD FAILED in 37s 47 actionable tasks: 41 executed, 6 up-to-date Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html
Hi. To Solve this you must modify your AndroidManifest.xml it's located at android/app/src/main/AndroidManifest.xml. Find this line android:allowBackup="false"
and set it true android:allowBackup="true"
.
I did that and it worked for me.