Unity3D 編譯生成安卓包時報:Error while saving blame file, build will continue

在接入最新的googleads的SDK後,生成安卓包報了一個亂碼錯誤:

Error: Error while saving blame file, build will continue

Error: 涓庡厓鞝犵被鍨娺”uses-sdk” 鐩稿叧鑱旂殑灞炴?”tools:overrideLibrary” 鐨勫墠緙 “tools” 鏈?粦瀹氥佁

Unity3D 編譯生成安卓包時報:Error while saving blame file - 第1張  | 逗分享開發經驗

 

這個錯誤應該是某個第三方插件用了tools:overrideLibrary導致的

解決辦法是在Plugins/Android/AndroidManifest.xml中根節點中添加下面加一句

xmlns:tools=http://schemas.android.com/tools

Unity3D 編譯生成安卓包時報:Error while saving blame file - 第2張  | 逗分享開發經驗

不同的是,我在接入google的firebase的時候出現了該問題,去掉firebase插件是沒問題的,在firebase存在的情況下添加了上面這句話就正常導出了。

xmlns:tools="http://schemas.android.com/tools"
發佈了38 篇原創文章 · 獲贊 16 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章