Android specified for property 'signingConfig.storeFile' does not exist

后端 未结 6 1366
感情败类
感情败类 2020-12-16 10:41

Im trying to generate signed APK Using AndroidStudio but I get this error:

    Error:A problem was found with the configuration of task \':app:packageRelease         


        
相关标签:
6条回答
  • 2020-12-16 11:04

    My key was in

    APPROOT/myKey.jks
    

    Whilst the gradle was looking in

    APPROOT/app/myKey.jks
    

    I think you specify that second path on the second dialogue when you generate the signed apk, but I haven't checked it out, can someone confirm?

    0 讨论(0)
  • 2020-12-16 11:05

    I was also getting the same error. The mistake I made was storing the keystore in the application's "app" package and providing the same path to android studio.

    Just remove the keystore and place another than your android application's "" package.

    0 讨论(0)
  • 2020-12-16 11:06

    Change Permissions for the app folder to 777 for everyone.The reason is because Android Studio is failing to write to the folder

    0 讨论(0)
  • 2020-12-16 11:08

    Make sure that you write the extension of the keystore file when firstly creating.

    0 讨论(0)
  • 2020-12-16 11:13

    Try rebuilding the project. So go to Build-> Clean Project. Then generate the signed APK file again (Build -> Generate Signed APK).

    0 讨论(0)
  • 2020-12-16 11:15

    Go to Build -> Generate Signed APK. Create your key (or choose existing) -> next -> next -> done!

    If you want to do it "hard way" you need to specify already created release key into signingConfigs before buildTypes. Something like this:

    signingConfigs {
            release {
                storeFile file("/yourkey.jks") //check that the file exists
                storePassword "YourPassword"
                keyAlias "YourAlias"
                keyPassword "YourPassword"
            }
        }
    

    But this is useless somewhat. Because Android Studio provides very simple and easy way to create a signed APK file ready for publishing. And also specifying your key's password into the build.gradle file... - it isn't advisable to do it in terms of security.

    0 讨论(0)
提交回复
热议问题