Android studio 4.1打包失敗和插件錯(cuò)誤提示的解決
一、Android studio 升級(jí)4.1,Android Gradle插件從4.0.2升級(jí)到4.1.0后打包失敗,回退到4.0.2后打包正常。
錯(cuò)誤信息:•What went wrong: Execution failed for task ‘:app:processDebugManifest’.Could not get unknown property ‘manifestOutputDirectory’ for task ‘:app:processDebugManifest’ of type com.android.build.gradle.tasks.ProcessMultiApkApplicationManifest.
項(xiàng)目用到了華為推送,所以在項(xiàng)目級(jí)build.gradle文件中配置了AppGallery Connect插件地址:
classpath “com.huawei.agconnect:agcp:1.3.1.300”
可能是這個(gè)插件和gradle:4.1.0不兼容引發(fā)的問題,修改插件版本號(hào)之后打包正常
classpath “com.huawei.agconnect:agcp:1.4.1.300”
二、Android studio 升級(jí)4.1之后,提示插件兼容,插件列表中又找不到,這是因?yàn)锳ndroid studio插件本地存儲(chǔ)路徑變改變了,只需要?jiǎng)h除文件夾中報(bào)錯(cuò)的插件,重啟Android studio就可以了
4.1版本保存插件本地路徑:C:Users用戶AppDataRoamingGoogleAndroidStudio4.1plugins
到此這篇關(guān)于Android studio 4.1打包失敗和插件錯(cuò)誤提示的解決的文章就介紹到這了,更多相關(guān)Android studio 4.1打包失敗內(nèi)容請(qǐng)搜索好吧啦網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章希望大家以后多多支持好吧啦網(wǎng)!
相關(guān)文章:
1. .NET中實(shí)現(xiàn)對(duì)象數(shù)據(jù)映射示例詳解2. Ajax實(shí)現(xiàn)局部刷新的方法實(shí)例3. 通用 HTTP 簽名組件的另類實(shí)現(xiàn)方式4. javascript實(shí)現(xiàn)前端分頁效果5. .NET 8新預(yù)覽版使用 Blazor 組件進(jìn)行服務(wù)器端呈現(xiàn)(項(xiàng)目體驗(yàn))6. HTML5實(shí)戰(zhàn)與剖析之觸摸事件(touchstart、touchmove和touchend)7. 使用AJAX實(shí)現(xiàn)UTF8編碼表單提交到GBK編碼腳本無亂碼的解決方法8. 教你怎么用python selenium實(shí)現(xiàn)自動(dòng)化測(cè)試9. Python通過類的組合模擬街道紅綠燈10. jsp+mysql實(shí)現(xiàn)網(wǎng)頁的分頁查詢
