Unable to install newly created Android App - android

I am a newbie to Android world and started learning it few days back. I developed a sample application Using Eclipse and ADT pluggin. Checked it on Emulator, it's working. But when I exported that App as *.apk and tried to install it in my phone (Samsung Galaxy S running 2.2) ... it gives error that "Application not installed"
Can somebody throw some light on this ?

If the one on your device is signed with another key (e.g., debug), you
won't be able to install the other one over the top. You're not allowed to replace an application with another that has a conflicting signature. Uninstall the old APK, then try again.

I'm a newbie too & i had the same issue.Just uninstalled the previous app, and freshly exported a new apk file with keystore information. Then i was able to install it the newer version.

Did you enable "Unknown Sources" in the Applications Settings menu on your phone?

Related

Android third party causes "app not installed" error

I have created with the use of android studio a small project and then I generated the signed apk. Then I tried to install it in three phones and in the first one (which has android 8) the app was installed successfully but in the second one (which has android 4.2) and third one (which has android 5) I got the "app not installed" error. This is my second app (project) and my first one has been installed successfully in all these three phones. The minimum SDK version of the app is Android 4.0.3 (API level 15), so that's not causing the problem. Can anyone guess where the problem is?
Sign the apk with both v1 and v2 signatures. this is the most likely culprit given your scenario. apk will not get installed on devices with less than marshmallow if you only sign with v2
Well you can try following:
Change install location of app on the phones it's creating problem.
Try resetting app preferences
Clear Data and Cache of Package Installer
Allow Apps from Unknown Sources (Go to Settings → Security → Unknown Sources. Enable Unknown Sources. And then try installing App)
Try Deleting .android_secure/smdl2tmpl.asec file from your SD Card if using SD card
Resign the app.
Try changing app codes by using some apk editor app

Will different machine installed Android app (via Android Studio) get a different signature?

I have an old app that I've written for personal use only, and never made as release to the Play Store. I installed it to my phone via Android Studio using run app command.
Many years later I want to modify the app, I try to pick up the app and run it again, this time using a different computer. I get the error saying:
"Installation failed since the device already has an application with the same package but a different signature. In order to proceed, you have to uninstall the existing application."
I definitely don't want to uninstall my app, this would cause me lost all the data I've entered to it. So I want to ask that isn't the debug keystore used by Android Studio to install app on device would create app of the same signature? Why it would be different? Is a different machine caused this issue? Thank you very much!
It sounds like you were using your debug certificate when you originally installed the app. This is unique to each machine when you install Android Studio.
You can copy the debug certificate from your old machine to your new one.
The file is located in your [userhome]\.android\debug.keystore

App is crashing while clicking on app icon

I installed the app through android studio and its working fine, but when I create the apk and then I installed the apk, on some devices my app is crashing.
Can someone know how we can see the logs or errors in case when we installed through apk, in can't debug the app bcos its working that time.
here are few details,
build variant: debug,
my apk name: app-debug.apk,
and I am using 2 3rd party libs as an .aar files
If you have installed the apk also you can able to get the logs if you have connected your device with studio. For that you have set the No Filter in Android Monitor.
In the phones, your app is crashing, don't just install the app by apk there. May be some of your 3rd party dependency is not compatible with those versions or phones.
Debug your app in those phone with cable and check error logs. You will get to know the problem

How to uninstall an app completely from android(to solve signature errors)?

I am developing an app from so many days and i use my phone to test the app. So android studio always installs my app in my phone directly through ADB.
Today i made a signed apk from android studio and when i tried to install it. It gave me an error "App not installed - an existing package by the same name with a conflicting signature is already installed"
Check This Image :- http://i.stack.imgur.com/qumOm.png
So i uninstalled the old app and when i tried to install the signed apk it gave me error again"App not installed"
I Think my old app still left some Data in my phone.
So i used Titanium BackUp Manager and in first removed the app data and then uninstalled the old app.
This solved the problem and i was able to install my new app now.
Any,Other suggestions are welcome ??
You can get rid of the signature by removing /system/app/ folder from the device.
I also had issues installing gcam ports on my android device.
The above solution worked for me and I was able to install the app after removing
/system/app/GoogleCameraLegacy folder through TWRP recovery.

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

Categories

Resources