eclipse 从我的项目中获取 APK 文件

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4522976/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 15:32:55  来源:igfitidea点击:

Getting APK file from my project

androideclipseeclipse-plugin

提问by user547995

I just press right on my appproject and choose Android Tools --> Export Unsigned Application Package...

我只需在我的 appproject 上按右键并选择 Android 工具 --> 导出未签名的应用程序包...

But if i want to install the apk on my phone the install process dont finish

但是如果我想在我的手机上安装 apk 安装过程没有完成

What do i have made wrong?

我做错了什么?

回答by FoamyGuy

In eclipse you you go to run->build or if you have build automatically turned on you can go into the projects file structure and just copy the .apk file out of the bin folder. You can put this on the devices SD card and install it from there. No need to do the export unsigned apk thing.

在 Eclipse 中,您可以转到运行-> 构建,或者如果您已自动打开构建,您可以进入项目文件结构,然后将 .apk 文件从 bin 文件夹中复制出来。您可以将其放在设备 SD 卡上并从那里安装。无需做导出未签名的 apk 的事情。

回答by Jonas Alves

The .apk must be signed.

.apk 必须经过签名。

Eclipse auto-generates an .apk signed with a debugging key at bin/YourApp.apk. It's ok to use this file for testing purposes, but you shouldn't give this .apk to customers or end-users because you won't be able to update this app in the future.

Eclipse 会在 bin/YourApp.apk 自动生成一个使用调试密钥签名的 .apk。可以将此文件用于测试目的,但您不应将此 .apk 提供给客户或最终用户,因为您将来无法更新此应用程序。

If you intend to publish this .apk to your customers you should use your own key to sign the .apk. Read: Signing Your Applications

如果您打算将此 .apk 发布给您的客户,您应该使用您自己的密钥来签署 .apk。阅读:签署您的应用程序

回答by Will Kru

Make sure you enabled 'Unknown sources' within the applications section of your phone settings.

确保您在手机设置的应用程序部分启用了“未知来源”。

回答by Satheesh

If you already running your project on emulator,you just close that emulator.And goes to

如果您已经在模拟器上运行您的项目,您只需关闭该模拟器。然后转到

Project->clean
Project->BuildProject.

And then run your project in emulator and then check it out

然后在模拟器中运行你的项目,然后检查出来

bin/res/your.apk file

回答by LifeiSHot

You should use "Export Signed" instead of "Export Unassigned".

您应该使用“Export Signed”而不是“Export Unassigned”。

Google does not allow Android System to install "Export Unassigned" apk, see here -> http://developer.android.com/tools/publishing/app-signing.html.

Google 不允许 Android 系统安装“导出未分配”apk,请参见此处 -> http://developer.android.com/tools/publishing/app-signing.html

To "Export signed", read here -> http://www.srccodes.com/p/article/23/build-android-application-package-file-apk-using-eclipse-ide-and-android-development-tools-adt-plugin

要“导出签名”,请阅读此处 -> http://www.srccodes.com/p/article/23/build-android-application-package-file-apk-using-eclipse-ide-and-android-development-工具-adt-插件