Android 中Failed to read key from keystore解决办法

Android 中Failed to read key from keystore解决办法,第1张

概述Android中Failedtoreadkeyfromkeystore解决办法Causedby:org.gradle.tooling.BuildException:Failedtoreadkeyfromkeystore

AndroID 中Failed to read key from keystore解决办法

Caused by: org.gradle.tooling.BuildException: Failed to read key from keystore     at com.androID.build.gradle.tasks.PackageApplication.doFullTaskAction(PackageApplication.groovy:110)     at com.androID.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.groovy:64)     at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63)     at org.gradle.API.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactor y.java:235)     at org.gradle.API.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.jav a:211)     at org.gradle.API.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory. java:222)     at org.gradle.API.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.jav a:200)     at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)     at org.gradle.API.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)     ... 47 more Caused by: com.androID.builder.packaging.SigningException: Failed to read key from keystore     at com.androID.builder.core.AndroIDBuilder.packageApk(AndroIDBuilder.java:1468)     at com.androID.builder.core.AndroIDBuilder$packageApk.call(UnkNown Source)     at com.androID.build.gradle.tasks.PackageApplication.doFullTaskAction(PackageApplication.groovy:95)     ... 55 more 

build.gradle

signingConfigs {   robert {     storePassword 'robert'     storefile file('/Users/bournewang/documents/Project/androID.keystore')     keyPassword 'robert'     keyAlias 'mike'   } } 


解决方案:

Check your keystore file for first,in you example you creating file with name my-release-key.keystore. If its correct and really present in folder Users/bournewang/documents/Project check alias,in your example it is -alias alias_name,but in config you specifIEd alias mike

大意是:

1.androID.keystore可能不在指定目录下面

2.keyAlias不对

另:想知道真正原因的话,可以查看

To find out what's wrong you can use gradle's singingReport command.  On mac:  ./gradlew signingReport On windows:  gradle signingReport 

如有疑问请留言或者到本站社区交流讨论,感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

总结

以上是内存溢出为你收集整理的Android 中Failed to read key from keystore解决办法全部内容,希望文章能够帮你解决Android 中Failed to read key from keystore解决办法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1144385.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-31
下一篇 2022-05-31

发表评论

登录后才能评论

评论列表(0条)

保存