apk簽名打包時報master password is required to unlock the password database.錯誤,或者signtrue versions無法勾選,以及Error:Execution failed for task ':app:lintVitalRelease'.


1、如果在簽名時android studio報"Master password is required to unlock the password database.The password database will be unlocked during this session for all subsystems."

那么直接點擊彈窗右下角的“Reset”按鈕,再輸入密碼和確認密碼就好了。

 

2、選擇版本類型時signtrue versions無法勾選,一般不會出現這種情況,我是在二次打包的時候不知道怎么搞的,反正就是不能選中,但是這時候是可以實際“Finish”的,所以不用管它,直接點擊Finish就行了。

 

3、Error:Execution failed for task ':app:lintVitalRelease'.

> Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows:
...

這個studio有直接給出解決辦法:

android {
  lintOptions {
    checkReleaseBuilds false
    // Or, if you prefer, you can continue to check for errors in release builds,
    // but continue the build even when errors are found:
    abortOnError false
}
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM