简体   繁体   中英

keystore and private key migration

I have and issue when I try to generate signed-apk. Well, I have a laptop what was used to development my android app using android studio by other hand I have a desktop with clean android installation.

I copied /home/.android folder from m laptop to my desktop but when I try to compile a signed-apk I get follow error message: cannot recover key. Either if I compile it on my laptop I am able to get signed apk.

Do I am missing something? Thanks a lot

Make sure you added these in your build.gradle:

signingConfigs{
        config {
            keyAlias '****'
            keyPassword '****'
            storeFile file('****.keystore')
            storePassword '****'
        }
    }

On your laptop you might be using existing keystore path that is the .jks file , use the same file to generate signed apk on your desktop. See if this works.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM