##项目集成阿里云盾实人认证时,将SecurityBodySDK-external-release-5.4.79.aar 库导入时,运行编译失败,报错:
Error:Execution failed for task ‘:processDebugManifest’
Manifest merger failed with multiple errors, see logs
导致错误原因:
SecurityBodySDK-external-release-5.4.79.aar库和主程序的allowBackup冲突
解决流程:
根据android Studio 右下角的Gradle Console提示,点击run with info 查看具体报错详细信息
Execution failed for task ':processDebugManifest'
具体错误信息:
Error:D:\xzdc\AiDong\AiDongDong_android\app\src\main\AndroidManifest.xml:52:9-35 Error:
Attribute [email protected] value=(true) from AndroidManifest.xml:52:9-35
is also present at [:SecurityBodySDK-external-release-5.4.79] AndroidManifest.xml:15:9-36 value=(false).
Suggestion: add ‘tools:replace=“android:allowBackup”’ to element at AndroidManifest.xml:50:5-189:19 to override.
FAILURE: Build failed with an exception.
问题找到:
[:SecurityBodySDK-external-release-5.4.79] AndroidManifest.xml:15:9-36 value=(false).
Suggestion: add ‘tools:replace=“android:allowBackup”’ to element at AndroidManifest.xml:50:5-189:19 to override.
Execution failed for task ':processDebugManifest'android:allowBackup=“true” 属性与导入库中 android:allowBackup=“false” 冲突
解决方案:
添加属性tools:replace="android:allowBackup“替换掉库的标签属性
Execution failed for task ':processDebugManifest'
编译成功

相关文章:

  • 2021-04-04
  • 2021-12-22
  • 2021-07-04
  • 2021-03-31
  • 2021-07-05
  • 2022-01-23
  • 2021-04-03
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-11-19
  • 2021-04-27
  • 2021-03-31
  • 2021-10-05
  • 2021-10-05
相关资源
相似解决方案