简体   繁体   English

通过Eclipse从现有的Android项目中导出签名的.apk

[英]Export Signed .Apk From Existing Android Project Via Eclipse

UPDATE - PROJECT VALUES 更新-项目价值

Eclipse/Android Problem Eclipse / Android问题

Does anyone have a straightforward solution to this problem encountered whilst importing an existing Android project into Eclipse. 在将现有的Android项目导入Eclipse时,是否有人有解决此问题的简单方法。

The intention of using an existing Android project was specifically to utilise the Eclipse ADT Export Wizard to produce a signed .apk that should work on an Android device version 2.3.3 upward . 使用现有Android项目的目的是专门利用Eclipse ADT Export Wizard生成一个签名的.apk,该.apk应该可以在2.3.3以上版本的Android设备上使用

The existent Android project has already been tested on my device (Android version 2.3.3) and functions correctly. 现有的Android项目已经在我的设备(Android版本2.3.3)上进行了测试,并且可以正常运行。

Tools used: 使用的工具:

Android SDK/Eclipse IDE bundle (March 2014), plus Java JDK (March 2014). Android SDK / Eclipse IDE捆绑包(2014年3月),以及Java JDK(2014年3月)。

All tools function correctly. 所有工具均正常运行。

Import Existing Android Project Process: 导入现有的Android项目流程:

Open Eclipse > File > New > Project > Android Project From Existing Code > Next > Browse to select project from root directory > Select project > Finish). 打开Eclipse>文件>新建>项目>现有代码中的Android项目>下一步>浏览以从根目录中选择项目>选择项目>完成)。

This process worked & the existing Android project was imported & displayed the left hand side of the Eclipse console under the Project Explorer View. 此过程有效,并且导入了现有的Android项目,并在Project Explorer视图下将Eclipse控制台显示在左侧。

I then signed the project using the Eclipse ADT Export Wizard before exporting the final .apk. 然后,在导出最终的.apk之前,我使用Eclipse ADT导出向导对项目进行了签名。

Summary: 摘要:

All software appeared to work correctly. 所有软件似乎都能正常运行。 Signing process appeared to have worked correctly. 签名过程似乎正常工作。 Export of .apk appeared to have worked correctly. .apk的导出似乎正常工作。

I can import an existing Android project into Eclipse successfully. 我可以将现有的Android项目成功导入Eclipse。 I can sign the .apk successfully. 我可以成功签署.apk。 I can export the .apk successfully. 我可以成功导出.apk。

However, the resultant .apk would not install on my mobile device (Android Build 2.3.3). 但是,生成的.apk无法安装在我的移动设备上(Android Build 2.3.3)。

RE: AndroidManifest.xml: 回复:AndroidManifest.xml:

minSDKVersion = "10" targetSDKVersion ="19" minSDKVersion =“ 10” targetSDKVersion =“ 19”

RE: project.properties: RE:project.properties:

target=android-19 target = android-19

Just a possibility; 只是一种可能性; have you gone through the device's settings --> apps --> all --> myApp --> remove process? 您是否已完成设备的设置->应用程序->所有-> myApp->删除过程? even if it's a debugging keystore you are signing that with, it is probably different, and the phone won't install that. 即使它是您用来签名的调试密钥库,也可能有所不同,并且手机不会安装它。

If that doesn't work, could you post your logcat from the period around when you install the app? 如果那行不通,您可以在安装应用程序后的一段时间内发布您的logcat吗?

Many thanks for taking the time to look at & reply to this question. 非常感谢您抽出宝贵时间查看并回答此问题。 The procedure outlined above worked after a reinstall of the Eclipse IDE / Android SDK bundle (March 2014). 重新安装Eclipse IDE / Android SDK捆绑包(2014年3月)后,上述过程得以工作。

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

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