我尝试安装react-native-agora,但不幸的是,当我链接react native agora时,应用无法构建

时间:2020-01-26 09:51:30

标签: react-native

我尝试安装react-native-agora,但不幸的是,当我链接react本地应用时,该应用无法构建。

错误消息

FAILURE: Build failed with an exception.

* 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-agora] AndroidManifest.xml:21:9-35 value=(true).
Suggestion: add 'tools:replace="android:allowBackup"' to <application> element at AndroidManifest.xml:7:5-117 to override.

1 个答案:

答案 0 :(得分:1)

tools:replace="android:allowBackup"
android:allowBackup="true" 

将这两行添加到标记内的'project-root >> android >> app >> src >> debug >>'中的AndroidManifest.xml文件中