开发者

Where do I find the .apk file? [duplicate]

开发者 https://www.devze.com 2023-03-04 19:40 出处:网络
This question already has answers here: Location of .apk file 开发者_运维问答(6 answers) Closed 8 years ago.
This question already has answers here: Location of .apk file 开发者_运维问答 (6 answers) Closed 8 years ago.

I want to export an APK file so a friend can try my app that I've developed using Eclipse/ADT on his phone. How do I do this? I can't find a suitable option under Eclipse's export options, and searching for .apk on my drive didn't show anything?

Thanks


Right click your android project --> Android tools --> Export unsigned application package


Have you right clicked the project and choosen Export->Android->Export Android Application? Just building the app in Eclipse does not create the apk.


Go to the project folder location.
Go inside the bin folder.
You will find the apk there**.
Send your apk to your friend via mail or USB.
Using the adb.exe install the file to your device.

** - If you have successfully build the project.


look in you workspace/ folder

rightclick your project and choose options. resource->location


As pointed in an answer to a similar question How do you compile an Android project into an .apk file in Eclipse without launching the emulator? , since Eclipse Indigo, building the project will not put your APK directly on the bin folder. You will have to run the emulator for it to generate the APK

If you want the APK to be generated on build time, you need to Go to Windows -> Preferences -> Android -> Build and uncheck "Skip packaging and dexing until export or launch" then restart Eclipse. (credits for @Andy Weinstein who answered it on the other question)


Ah I just realised it was there! Still not used to windows 7!! It was in the root of the project's bin directory after all.

0

精彩评论

暂无评论...
验证码 换一张
取 消