先貼出報(bào)錯(cuò)信息
Execution failed for task ':examplecases:packageRelease'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
? ?> com.android.ide.common.signing.KeytoolException: Failed to read key aaa from store "C:\Users\a\Desktop\NewProject\aaa.jks": Invalid keystore format
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
?報(bào)錯(cuò)信息顯示我們要使用的key格式錯(cuò)誤,首先先排除輸錯(cuò)密碼或者路徑問題(自行反省低級(jí)錯(cuò)誤),這種情況多半是發(fā)生在剛升級(jí)過as版本或者jdk版本的時(shí)候,jdk的版本過高或者過低都會(huì)發(fā)生此類問題。
解決方案:
打開file->settings。
將jdk版本設(shè)置為11,重新打包,問題解決。
文章來源:http://www.zghlxwxcb.cn/news/detail-603558.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-603558.html
到了這里,關(guān)于AndroidStudio打包 Invalid keystore format 報(bào)錯(cuò)的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!