Failed to read key from keystore solution in Android
Caused by: : Failed to read key from keystore at (:110) at (:64) at (:63) at $(AnnotationProcessingTaskFactor :235) at $( a:211) at $(AnnotationProcessingTaskFactory. java:222) at $( a:200) at (:80) at (:61) ... 47 more Caused by: : Failed to read key from keystore at (:1468) at $packageApk$(Unknown Source) at (:95) ... 55 more
signingConfigs { robert { storePassword 'robert' storeFile file('/Users/bournewang/Documents/Project/') keyPassword 'robert' keyAlias 'mike' } }
Solution:
Check your keystore file for first, in you example you creating file with name . 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
The general idea is:
Maybe not under the specified directory
wrong
Also: If you want to know the real reason, you can check it out
To find out what's wrong you can use gradle's singingReport command. On mac: ./gradlew signingReport On Windows: gradle signingReport
If you have any questions, please leave a message or go to the community of this site to exchange and discuss. Thank you for reading. I hope it can help you. Thank you for your support for this site!