application installation failed error at runtime - android

I receive the following error every time I try and run my application
I tried all the solutions mentioned here and none of them worked.
The weird thing here is that, I tried to run my application for the first time of the Android Emulator and I got the same error. I never installed the application there, yet I get the same error.
any ideas what might be causing this error?

Please do the followings:
*Clean up your Project(Build/Clean Project)
*Uninstall any previous installations of your application on device(if it is present)
*Restart Android studio
*Restart Android Emulator
If your problem is still there, then try to restart your system

Related

Application installation failed even after reviewing everything clearly

Seems my Android studios isn't working as it used to work before.
When I run the emulator, it loads for a bit of time, later it opens the emulator, but the project isn't loading up. I'm receiving strange type of error:
Installation failed with message Invalid File: C:\google-services-master\android...\app\build\intermediates\split-apk\debug\slices\slice_2.apk.
It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installing.
WARNING: Uninstalling will remove the application data!
Do you want to uninstall the existing application?
I had some thoughs maybe the project is broken, so I made a new one. The same problem occurs, I created a new emulator, didn't helped either, rebuilded and cleaned the project and still receiving the same problem.
I've checked these topics:
Installation failed in android studio
Android Studio: Application Installation Failed
Couldn't fix it either.. Idk, maybe I should reinstall Android Studios? But hell yeah, it takes so long to install all the updates..
P.S. The project consumes only 1 layout and 1 imageview.
Everything was working fine until now..

Android emulators don't start

Since yesterday, my android studio emulators don't start. It was just after i updated Android Studio Library, i don't know if it is just a coïncidence.
What happens when i press start is:
The emulator command is executed
I see emulator.exe process in windows task manager, but no window is opened
Before that, the emulators started just fine, i had no problems, so it shouldn't be hardware issues.
I tried to launch it from the command line, to see if there were errors, but there's nothing. I also checked android studio's logs but still nothing... I also reinstalled completely android studio with no effects. I also tried to let it run for awhile but nothing appears.
Does anyone have a clue about what could cause this ?
EDIT :
It was a known issue (GPU related) of the SDK Tools 25.1.1 , it has been updated about 5 days later and now it works perfectly.
I had exactly the same issue.
Removing C:Windows\System32\Wbem from system PATH variable helps me:
https://stackoverflow.com/a/36650430/1901621

AVD not opening in Android Studio

I recently installed Android studio and the first time around AVD worked fine and the emulator was up and running no problem with that. But when I turned off my computer and booted it up again. But now when i try to open avd the following error message is displayed
when i reinstalled the android studio the same thing happens again,for the first time around it works but second time around the same error message comes.
Not able to find solutions over the internet as well.
This is a common problem that many people have faced. The Access Denied is indicating that Android Studio is trying to access files that require elevated privileges.
To solve this error, right click your Android Studio launcher, and click Run as Administrator.

Can't run android app from eclipse

Hi eclipse is giving me the following problem all of a sudden and i can't execute my app.
This is the screen shot of the error.
I have did the following things.
Clean>build.
Restart eclipse
But the problem is not going and i have not changed any thing in eclipse only worked on the php file as my app accesses mysql db.
Please help as i am due to submit a project today.
This is my error log.
error log
Try creating new emulator and set it as your target device from run configurations of your application. Try running your application from there.

Cannot load the app in titanium android emulator

I am having this problem while running my application in emulator.When I run application it shows in console this error:
[ERROR]Error reading data file
and then nothing happens.Don't know what can be the issue, tried it many ways deleting all virtual AVDs and cleaning up the project again and again but not working anyway any solution for that? I am using 2.1.1 titanium SDK and android V8 (2.2).
sometime this also show this error in console:
[ERROR]No building apps, No launcher activity.
Did the application run before?
Have you tried a clean build or deleting the build directory to perform a full rebuild? You can also have a look into the logcat provided by DDMS to search helpful information.

Categories

Resources