App Not Installed error - android

I have created an unsigned apk for my nexus 7. When I try and install it, the device pops up with, "App Not Installed". In the Eclipse emulator everything works fine. I have tried to alter my target to 4.2,4.3,4.4. Again, all work in the emulator but not on the device, the device is running 4.3.

An unsigned application cannot be installed. You should sign it with jarsigner tool (provided by Android SDK tools)
The important points to understand about signing Android applications
are:
All applications must be signed. The system will not install an application on an emulator or a device if it is not signed.
See http://developer.android.com/tools/publishing/app-signing.html

Two ways to solve this
1.Signing the apk (which is preferable)
2.Take apk from bin instead of taking unsigned then instead of replacing the app, un-install existing app and install it

Related

Android Signed and Unsigned Export Error

I have an developed an android app with minimum API level 9 and Maximum 4.4 Kitkat. When i intent to export the app i tried both of the options provided in Eclipse ADT bundle.I tried the unsigned export it compiled and gave a APK file. I copied the APK file to the SD card and tried to install on my device it said application did not installed..I can't figure out the problem?
Most probably it is caused by different signatures. Try installing it from console, so you can see deatiled error message.
Un-install your app from your phone first, then try.
You cannot install the built app (APK) if you have the debug (Eclipse) version on your phone.
The package names etc conflict, while it thinks the apps are different, due to the test/release signatures so will not let you install it again.

Test Android App over Remote Desktop

When I'm away from my computer, I like to use TeamViewer to access it and work on my Android apps. I save unsigned .apk files to my Google Drive so that I can test them while on the go, too. I download the .apk files to my Android device through the Drive app, but I'm having an issue.
When I go to install the App after downloading it from Google Drive, Android asks me if I'd like to install the App. When I click yes, it begins the install process but then exits with an "App Not Installed" error. There doesn't seem to be any other indication of what happened.
I've tried this with several of my .apk files, but they all give me the same issue. If it helps, these are apps I've previously downloaded by running the app with my android device plugged into my computer. I made sure to uninstall the app before trying to install it through the .apk file. I'm testing on a Google Nexus 7 32GB.
Any help would be much appreciated. Thank you!
To me, it sounds like you are trying to install an APK that is signed with a different certificate than the one installed on the device.
Run logcat, and you will see a message with information on exactly what is happening.
Have out tried installing your unsigned APK through ADB? This should let you see any errors there are in installing that APK, such as security settings.
According to a now-deleted(?) comment, you were trying to install an unsigned APK.
Alas, you cannot install an unsigned APK. Android -- emulators and devices alike -- only run signed APKs.
What comes out of the normal development process is an APK signed with the debug signing key, not an unsigned APK. There is a concept of an unsigned APK, but you have to go out of your way to create one normally, and it's usually just an interim step en route to signing it.

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
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:
If you have run it on the emulator then there is an .apk file in the bin directory of your project.
Move that .apk to your phone via usb or another method (I use dropbox).
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.
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.
Specifically how are you getting the APK to the device? Try dab install <path to APK>. Also, you can install APKs from the Android browser by uploading it to any web server and navigating to its URL.
You must export and sign with a debug certificate before installing. Read about publishing.
If you are using Eclipse, you don't need to export your app as "unsigned apk". Simply enable "Allow Unknown Sources" on the phone, and right click on project and hit "Run As".
Unsigned apks are generated by signing them with the debug.keystore key that's stored in the Android SDK. It could be possible that his key is corrupted. To verify, check to see if any other project also gives a similar problem. To resolve th key corruption, delete your SDK and install again (shouldn't take more than 15mins).
In case other projects work fine, which means your debug.keystorekey is NOT corrupt, you need to uninstall any previous versions of this app on your phone and restart your phone.
It could also be possible that the adb server could be messed up. In that case, restart your Eclipse or do adb kill-server from command line.
Also, seems like other people have faced similar issues. Did you search similar StackOverflow questions and try out the solutions? Here's one: 'App not Installed' Error on Android
Unsigned APK can be installed in real mobile devices for purpose of testing.
Just follow these steps on images:
Locate the APK and send it to your mobile through gmail etc..

How to create .apk files for Android?

I tried right clicking on my project (in Eclipse) android tools->Export unsigned application package.
I then moved to .apk file to my Samsung Galaxi S device and tried to install it,
I got a message saying the app was not installed.
Did I do something wrong in creating the .apk (what could be the problem)?
Check this doc.
If you want to install the application with debug key then you need device driver(Kies in your case) installed on your development machine. Then attach your device to your machine through USB port. Close emulator and run your Android application on your device using Eclipse. The signing procedure mentioned in previous answers is mandatory only when you are uploading your application on Android Market.
you should Export signed Apk file:
http://developer.android.com/guide/publishing/app-signing.html

Android test application on a real device

I'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2).
In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'.
The phone has the settings to accept installation of non android application, so I'm not sure why I can't test on it.
Is it because it's not signed?
Any idea?
Thx fellas
You're mistaking "run non-market apps" with "run unsigned apps". Android apps need to be signed, unless you have a very vile ROM that circumvents this check.
Sign the app, or run it through Eclipse (which auto-signs it with a debug key).
Run in from Eclipse, it will install just fine.

Categories

Resources