Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Unsigned App not able to install on device

My app able run on simulator and I export it as Unsigned App.

On my phone's Setting-->>Applications--->>Unknown sources checked.

I download the .apk into phone storage through USB.

Then under File Manager, I found that stored .apk and hit install button and it try to install,

But finally it says Application Not installed. but why? wht's wrong?

Also I try ./adb install -r myapp.apk but it said error:device not found

like image 649
lilzz Avatar asked Feb 22 '12 19:02

lilzz


2 Answers

I have never tested an app on a device by using your method... When I am NOT debugging on my device using usb and I just want to install it on my phone, I do the following:

  1. If you have run it on the emulator then there is an .apk file in the bin directory of your project.

  2. Move that .apk to your phone via usb or another method (I use dropbox).

  3. Open the .apk and install on your phone.

The previous answers are correct, it must be signed. But by doing my method it will be signed with your debug key.

You will obviously want to actually sign it with a real key before publishing it to the market.

like image 96
bytebender Avatar answered Oct 17 '22 05:10

bytebender


All applications must be signed in order to install on emulator or real device, check out the official dev guide signing your application:

  • All applications must be signed. The system will not install an application on an emulator or a device if it is not signed.
  • To test and debug your application, the build tools sign your application with a special debug key that is created by the Android SDK build tools.
like image 33
yorkw Avatar answered Oct 17 '22 04:10

yorkw