Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
432 views
in Technique[技术] by (71.8m points)

android - 在SD卡上安装自签名APK时出现“未安装应用程序”(“Application not installed” when installing an self-signed apk on SD-card)

* EDIT 1 * Of course, just after I posted i tried to uninstall the app, and then reinstall it from APK.

(*编辑1 *当然,刚发布后,我尝试卸载该应用程序,然后从APK重新安装它。)

Then it worked.

(然后它起作用了。)

Maybe its the fact that I usually install it from Eclipse that is the bad thing here?

(也许这是我通常从Eclipse安装它的事实,这很不好?)

Testing

(测试中)

/EDIT

(/编辑)

So I am having the problem that my fine APK-files wont install om my device.

(因此,我的问题是我的精美APK文件无法在我的设备上安装。)

I found another who had the same problem, and solved it by self-signing: unsigned APK can not be installed

(我发现另一个遇到相同问题的人,并通过自签名解决了该问题: 无法安装未签名的APK)

However, I always tried with a signed APK.

(但是,我总是尝试使用签名的APK。)

In Eclipse, I choose "Export" and then I have to first choose and "log in to" my keystore, then choose a key and again supply my password, and then choose the location for the file, and press "Finish".

(在Eclipse中,我选择“导出”,然后必须首先选择并“登录”我的密钥库,然后选择一个密钥并再次提供我的密码,然后选择文件的位置,然后按“完成”。)

This is the last "page" in the wizard:

(这是向导中的最后一个“页面”:)

在此处输入图片说明

After I copy that APK-file to my device, and then "run it" from the file explorer, the Install-screen shows upp and looks OK.

(将那个APK文件复制到我的设备上,然后从文件资源管理器中“运行它”之后,“安装”屏幕显示upp并看上去确定。)

First I get the "Replace application"-screen, asking me if I want to replace the existing version.

(首先,我看到“替换应用程序”屏幕,询问我是否要替换现有版本。)

I press "OK".

(我按“确定”。)

Then it asks me if I want to allow the application to ... yada yada.

(然后它问我是否要允许该应用程序... yada yada。)

I press "Install".

(我按“安装”。)

After a brief message saying "Installing" I get the message:

(在显示“正在安装”的简短消息后,我收到消息:)

Application not installed

(应用未安装)

with a green "check" to the left of it.

(并在其左侧带有绿色的“对勾”。)

No other error messages.

(没有其他错误消息。)

I have checked the box "Unknown sources".

(我已选中“未知来源”框。)

I might add that there are no problems when I launch the same app from Eclipse!

(我可能会补充说,当我从Eclipse启动同一应用程序时没有任何问题!)

Any tips and ideas would be appreciated.

(任何提示和想法将不胜感激。)

  ask by Ted translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If the two .apks have different signatures (Eclipse uses a debug certificate), you will not be able to install/update with the new .apk without removing the previous one.

(如果两个.apk具有不同的签名(Eclipse使用调试证书),则在不删除前一个.apk的情况下将无法使用新的.apk进行安装/更新。)

You can find more information about this here .

(您可以在此处找到有关此信息的更多信息。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...