Android Studio emulator can neither install app nor delete it. - android

I have a problem with a particular app in android studio.
When I wanted to Run app it gave this error:
Failure [INSTALL_FAILED_NO_MATCHING_ABIS]
and asked like this:
I clicked OK button to uninstall it then it gave another error:
DELETE_FAILED_INTERNAL_ERROR
Error while Installing APK
I can not uninstall the app manually from the emulator. The Settings -> App -> in the emulator does not show the application in the application list.
How can I erase the app or how can I make it work on emulator.

Related

Application Installation Failed- Installation Failed with message null

I tried to build the APK file for my project. It created a file in the build folder. After that I am not able to test my app further as the new project after any changes is not getting installed in my device now. I tried most of the solutions given on the internet. The project is built successfully but it just doesn't get installed. The installation goes on forever. And then an error message pops up like the one given in the image. It is a screenshot of the error message.
I have tried cleaning and rebuilding and then running the app. It didn't worked. I deleted the build folder. It didn't helped.
Try to run off Instant Run Settings -> Build, Execturion, Depoyment -> Instant Run, disable there.
i got the solution. The app was not properly uninstalled. It was not showing in the app drawer but it was there when I opened the Application Manager from my phone's Settings. From there, I uninstalled the app and then reinstalled it from /android Studio and it worked fine.

The app gets forced stop when installed through .apk file but works fine when installed through adb in android studio

My app executes fine when i install through adb in android studio.
When i use the .apk file to install the app it gets installed but gives forced stop dialog whenever i open it.
How can i resolve this?
Try to disable instant run from File--> Settings--> Build,Execution,Deployment.
Disable instant run and run it again from adb.
And then try to install new apk in your phone

Installed app not working

I've got a problem with my android app. When I run and install it by Android Studio, everything is ok, but when I try to install it manualy from .apk file after installation it immediately close.
It does even on hello world app.
I have unkown sources turn on.

Can't install apk via Android Studio or adb with the apk build by Android Studio

I download an android project source code from github and open it with Android Studio, but when I click the "run app" button, after some while I got this error:
Installation failed since the device possibly has stale dexed jars that don't match the current version (dexopt error).
In order to proceed, you have to uninstall the existing application.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
And I got this error in the console
$ adb push D:\work\zuoyexitong\third-part-projects\AndroidAudioRecorder\app\build\outputs\apk\app-debug.apk /data/local/tmp/cafe.adriel.androidaudiorecorder.example
$ adb shell pm install -r "/data/local/tmp/cafe.adriel.androidaudiorecorder.example"
pkg: /data/local/tmp/cafe.adriel.androidaudiorecorder.example
Failure [INSTALL_FAILED_DEXOPT]
But I'm sure I didn't install this apk before. And if I click "ok" to let Android Studio to uninstall the app, i got this error
$ adb shell pm uninstall cafe.adriel.androidaudiorecorder.example
Unknown failure (Failure)
Error while Installing APK
My Android Stuido Version is : 2.2.3 .
The project i use is here
My device's android version is 4.1.1 .
My problem looks like this and this , but they can't solve my problem.
So how to solve this problem?
Try turning off Instant Run in Android Studio:
File / Settings / Build, Execution, Deployment / Instant Run / uncheck the top box.
If this allows successful installs, then turn instant run back on, and see if the problem comes back. It did for me - I just hit this issue on a small test program at AS2.4P7. The instant run feature is a light switch -on gives this error (even after refactoring) - off and the app loads OK. If it problem comes back when you turn on instant run again, then file a bug report - Help / Report Instant Run Issue...
This message is because there is an old version of your app installed on the device that has a dex size different from the current one you are trying to install, so you should press OK and proceed!
But I'm sure I didn't install this apk before.
Check if you are using the same package name of another app that is installed on your device [most probably by you]!
check you have space left for app install. Try uninstalling some apps and try this app install.

Update apk file after changes to source - Android Eclipse

Is there a way I can just update the apk file after making changes to the android source file in eclipse. I want to be able to do this without actually pressing the Run button in eclipse.
The reason I want this is because - I usually keep the emulator open in the background (since booting it up everytime takes too much time on my slow computer). And when I run the program after a previous run, eclipse just seems to hang up - even after I have stopped the app in the emulator.
So I decided to use the adb install command-line program to install on the emulator, but am unable to get the apk file updated without actually pressing on the run button in eclipse.
Actually, the Eclipse ADT plugin works like you want it to work. Everybody just run emulator once and then pressing RUN button update the application. If you have problems with this post the logcat during the run of your application.
You always can check the Build Automatically option in the Project menu option in Eclipse. Or you can Project->Clean your code, sometimes Eclipse get stuck trying to refresh all projects and dependencies.
You can un-install apk package with command line----
in linux os example:- adb shell pm uninstall -k <package name>
You can leave -k if you don't want to delete data and cache. If this command is failed then use emulator;
open settings in emulator -> apps -> your app and then stop it or un-install with emulator and it is more easy. Options are depend on emulator device.

Categories

Resources