简体   繁体   English

从Eclipse Importe项目创建签名的Android Apk到Android Studio

[英]Create signed android apk from an eclipse importe project to android studio

I created an Anndroid project in eclipse and have published it in the Play Stoore, but now I imported it into Android Studio to make some changes. 我在eclipse中创建了一个Anndroid项目,并将其发布在Play Stoore中,但现在我将其导入到Android Studio中以进行一些更改。

Now that I finished my changes I wanted to publish an update of my project. 现在,我完成了更改,我想发布项目的更新。

For this I go to Build -> Generate signed APK and I put the location of my keyStore and the respective passwords, alays and the location where I want to store my APK. 为此,我转到“ Build -> Generate签名的APK”,然后输入keyStore的位置以及相应的密码,密码和要存储APK的位置。

Android Studio create the APK file in the desired location. Android Studio在所需位置创建APK文件。

The problem is when I try to uplod my project to my Google Plusher account I get this error: 问题是,当我尝试将项目上传到我的Google Plusher帐户时,出现以下错误:

You uploaded an unsigned APK. 您上传了未签名的APK。 You must create a signed APK. 您必须创建一个签名的APK。

What can bee the problem? 蜜蜂有什么问题? I have used the same keystore that I used to use beffor. 我曾经使用过与beffor相同的密钥库。

1)Delete your build. 1)删除您的构建。

2)Generate sign Apk. 2)生成符号Apk。

3)check you are uploading a release apk not debug apk. 3)检查您是否正在上载发行版apk,而不是调试apk。

Or try this link https://developer.android.com/studio/publish/app-signing.html 或尝试使用此链接https://developer.android.com/studio/publish/app-signing.html

I was using the correct APK. 我使用的是正确的APK。 The problem was wen I have to select the signature version.I was usin the V2 (Full APK Signature), then I have tried the V1 (Jar Signature) and it worked. 问题是我必须选择签名版本。我使用的是V2(完整APK签名),然后我尝试了V1(Jar签名)并且可以工作。

You can locate the signed APK at MyProject/app/app-release.apk . 您可以在MyProject/app/app-release.apk找到已签名的APK。

You can upload this APK on the Google Play Store and it will work like a charm. 您可以将此APK上传到Google Play商店,它将像超级按钮一样工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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