Application Installation Failed in Android Studio
Yesterday my app was running perfect from Android Studio
but today when I started working on my app and running it i am getting error message continuously
Installation failed with message Failed to establish session.
Screen :
On click OK getting error message
Session 'app':Error Installing APKs
And App is not exist(already Uninstalled) in device. Please suggest me what to do ?
android android-studio installation apk
|
show 13 more comments
Yesterday my app was running perfect from Android Studio
but today when I started working on my app and running it i am getting error message continuously
Installation failed with message Failed to establish session.
Screen :
On click OK getting error message
Session 'app':Error Installing APKs
And App is not exist(already Uninstalled) in device. Please suggest me what to do ?
android android-studio installation apk
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
1
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
1
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20
|
show 13 more comments
Yesterday my app was running perfect from Android Studio
but today when I started working on my app and running it i am getting error message continuously
Installation failed with message Failed to establish session.
Screen :
On click OK getting error message
Session 'app':Error Installing APKs
And App is not exist(already Uninstalled) in device. Please suggest me what to do ?
android android-studio installation apk
Yesterday my app was running perfect from Android Studio
but today when I started working on my app and running it i am getting error message continuously
Installation failed with message Failed to establish session.
Screen :
On click OK getting error message
Session 'app':Error Installing APKs
And App is not exist(already Uninstalled) in device. Please suggest me what to do ?
android android-studio installation apk
android android-studio installation apk
edited Jan 2 '18 at 7:16
Shirish Herwade
4,770135799
4,770135799
asked Mar 9 '17 at 5:41
Kapil RajputKapil Rajput
5,91733046
5,91733046
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
1
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
1
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20
|
show 13 more comments
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
1
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
1
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
1
1
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
1
1
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20
|
show 13 more comments
26 Answers
26
active
oldest
votes
Again in this issue also I found Instant Run
buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.
Steps to Disable Instant Run
form Android Studio
File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
|
show 1 more comment
If you use MIUI ROM
Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
|
show 1 more comment
Your APK
file is missing . So , Clean Project >>
Build APK >>
Run the project .
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
add a comment |
For those who uses Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
Your device will respond properly.
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
add a comment |
I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.
Turn Off MIUI optimization in the Developer Options in the phone.
Then the device will be rebooted and then you'll be able to test the app over the phone.
Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)
add a comment |
Finally I've SOLVED it!
Below a temporary solution. Issue was reported to Google.
First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:
$ adb install-multiple -r
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
Then I tried to install only app-debug.apk
from command line by:
adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
App was installed successfully but was failed to run on my phone.
And finally:
- I recompiled
app-debug.apk
from command line as:
gradlew.bat assembleDebug
- Repeat installation of
app-debug.apk
from command line and became happy:
adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
This is definitely some gradle
problem in AndroidStudio 2.3
.
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
add a comment |
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting:
add a comment |
Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
add a comment |
Just do the following step...
Build>Clean Project
after that Run project again, this worked for me
add a comment |
Try disabling the Instant run in Settings.
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
add a comment |
This is caused by "instant run" feature, you can disable it by:
Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.
Uncheck the box next to Enable Instant Run and u are ready to go.
add a comment |
Change your applicationid in the build.gradle file.
for example-
com.example.myAndroidApp to com.example.somethingelse
then Sync your gradle then you can able to install your app,
if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.
Hope this may help you....
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
add a comment |
just close your emulator and run again the problem will be solved happy coding
add a comment |
In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..
In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.
add a comment |
In my case, is was because my emulator ran out of disk space.
add a comment |
Go to Build --> Clean Project --> Run
Thats all it takes.
add a comment |
Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
add a comment |
Sometime app doesn't show on home screen,So
Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
add a comment |
Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
add a comment |
Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here
add a comment |
Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:
1- Gradle Build (root level)
gradle
2 - Gradle build + clean (app level)
gradle app
3 - Choose app on the top bar (left of Run 'app')
4 - Clean Project:
Navigate to Build > Clean Project
And it should work now! You shouldn't disable instant run if you follow these steps
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
add a comment |
At me such error arose after renaming of a folder with the project.
Disabling Instance Run helped, but what if you do not need to disable it?
I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml
The error has disappeared.
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
add a comment |
In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.
add a comment |
In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.
I hope this helps.. Merry coding!
add a comment |
Easily can be solved this problem.
Ex:- in Huawei GR3 mobile,
Goto Setting in your mobile -> Storage -> Storage Cleaner
add a comment |
Allow or enable "Installation from USB" in the developer options.
add a comment |
26 Answers
26
active
oldest
votes
26 Answers
26
active
oldest
votes
active
oldest
votes
active
oldest
votes
Again in this issue also I found Instant Run
buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.
Steps to Disable Instant Run
form Android Studio
File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
|
show 1 more comment
Again in this issue also I found Instant Run
buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.
Steps to Disable Instant Run
form Android Studio
File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
|
show 1 more comment
Again in this issue also I found Instant Run
buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.
Steps to Disable Instant Run
form Android Studio
File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)
Again in this issue also I found Instant Run
buggy. When I disable the Instant run and run the app again App starts successfully installing in the Device without showing any error Window.
I hope google will sort out these Issues with Instant run soon.
Steps to Disable Instant Run
form Android Studio
File > Settings > Build,Execution,Deployment > Instant Run > Un-check
(Enable Instant Run to hot swap code)
edited Jun 16 '17 at 5:36
answered Mar 9 '17 at 12:17
Kapil RajputKapil Rajput
5,91733046
5,91733046
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
|
show 1 more comment
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
8
8
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
It is also work on MIUI ROM without disable MIUI Optimization, When disable MIUI Optimization then few permission auto grant to application like Windowmanager permission
– prakash ubhadiya
Jun 20 '17 at 5:35
1
1
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
This fixed the same issue I'm having, but with a Samsung phone!
– Yuki Kutsuya
Apr 14 '18 at 12:43
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
more than a year later this still happens.
– SilentStorm
May 25 '18 at 8:14
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
Funny (not really). My worthless crap Android Studio (v3.1.2) wouldn't run with Instant Run off.
– theAnonymous
Jun 3 '18 at 17:06
4
4
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
For Mac, Android Studio > Preferences > Build, Execution, Deployment > Instant Run > Un-check (Enable Instant Run to hot swap code)
– Vinoth Anandan
Jul 6 '18 at 11:56
|
show 1 more comment
If you use MIUI ROM
Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
|
show 1 more comment
If you use MIUI ROM
Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
|
show 1 more comment
If you use MIUI ROM
Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.
If you use MIUI ROM
Go to the developer option and in that disable MIUI optimization.You will be asked to reboot your phone.
Reboot it and then run the app.
edited Apr 26 '17 at 7:47
Lemberg
2,91613243
2,91613243
answered Mar 9 '17 at 11:01
Vivian DbrittoVivian Dbritto
95337
95337
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
|
show 1 more comment
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
1
1
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
hope miui guys will fix this soon
– ospider
Mar 19 '17 at 15:04
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
this helped me. MIUI
– alexey polusov
Jul 3 '17 at 19:00
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me..!
– Ahmad Shahwaiz
Jul 31 '17 at 6:16
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
worked for me. Thanks a lot
– Umesh Sharma
Oct 9 '17 at 10:18
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
I have samsung S7 , I am unable to see MIUI option in developer option can someon please help?
– Utsav Gupta
Jan 4 '18 at 14:19
|
show 1 more comment
Your APK
file is missing . So , Clean Project >>
Build APK >>
Run the project .
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
add a comment |
Your APK
file is missing . So , Clean Project >>
Build APK >>
Run the project .
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
add a comment |
Your APK
file is missing . So , Clean Project >>
Build APK >>
Run the project .
Your APK
file is missing . So , Clean Project >>
Build APK >>
Run the project .
answered Oct 12 '17 at 16:43
royroy
3,74311833
3,74311833
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
add a comment |
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Work for me Clean Project >> Rebuild Project >> Build APK >> Run
– Afzaal Ahmad
Nov 27 '17 at 10:26
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
Omg... this worked... So strange.
– Benjamin Piette
Sep 16 '18 at 19:16
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
You can Skip "Build APK"
– Sarvesh Thiruppathi
Dec 30 '18 at 10:42
add a comment |
For those who uses Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
Your device will respond properly.
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
add a comment |
For those who uses Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
Your device will respond properly.
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
add a comment |
For those who uses Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
Your device will respond properly.
For those who uses Xiaomi phones, follow these steps:
Settings-> Additional Settings-> Developer opetions
Turn off MIUI Optimization and reboot your phone
Last Disable verify app over USB
Your device will respond properly.
edited Mar 27 '18 at 8:40
CopsOnRoad
3,56421320
3,56421320
answered Sep 26 '17 at 5:38
user7939485user7939485
276213
276213
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
add a comment |
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
It actually worked for Xiaomi devices. Thanks mate!
– Pavel Selitskas
Oct 29 '17 at 13:34
please mark this as solution!
– John
Nov 3 '17 at 21:20
please mark this as solution!
– John
Nov 3 '17 at 21:20
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Thanks :). Mark this as solution
– user7939485
Dec 1 '17 at 8:19
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
Great, that did it for me. I have then re-enabled "Verify over USB" and it still works, at least for now.
– Violet Giraffe
Jan 9 '18 at 12:03
add a comment |
I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.
Turn Off MIUI optimization in the Developer Options in the phone.
Then the device will be rebooted and then you'll be able to test the app over the phone.
Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)
add a comment |
I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.
Turn Off MIUI optimization in the Developer Options in the phone.
Then the device will be rebooted and then you'll be able to test the app over the phone.
Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)
add a comment |
I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.
Turn Off MIUI optimization in the Developer Options in the phone.
Then the device will be rebooted and then you'll be able to test the app over the phone.
Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)
I had the same issue in Android studio 2.3 when I tried to test the app using Xiaomi's Mi5 and Mi4 phones. Disabling instant run didn't help me. So here is what I did.
Turn Off MIUI optimization in the Developer Options in the phone.
Then the device will be rebooted and then you'll be able to test the app over the phone.
Using this method you can still use instant run option in android studio. So this will fix your problem at least temporary. Hope that we'll be able to use MIUI optimization in the near future updates :)
answered Mar 28 '17 at 11:26
thilina Kjthilina Kj
776516
776516
add a comment |
add a comment |
Finally I've SOLVED it!
Below a temporary solution. Issue was reported to Google.
First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:
$ adb install-multiple -r
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
Then I tried to install only app-debug.apk
from command line by:
adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
App was installed successfully but was failed to run on my phone.
And finally:
- I recompiled
app-debug.apk
from command line as:
gradlew.bat assembleDebug
- Repeat installation of
app-debug.apk
from command line and became happy:
adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
This is definitely some gradle
problem in AndroidStudio 2.3
.
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
add a comment |
Finally I've SOLVED it!
Below a temporary solution. Issue was reported to Google.
First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:
$ adb install-multiple -r
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
Then I tried to install only app-debug.apk
from command line by:
adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
App was installed successfully but was failed to run on my phone.
And finally:
- I recompiled
app-debug.apk
from command line as:
gradlew.bat assembleDebug
- Repeat installation of
app-debug.apk
from command line and became happy:
adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
This is definitely some gradle
problem in AndroidStudio 2.3
.
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
add a comment |
Finally I've SOLVED it!
Below a temporary solution. Issue was reported to Google.
First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:
$ adb install-multiple -r
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
Then I tried to install only app-debug.apk
from command line by:
adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
App was installed successfully but was failed to run on my phone.
And finally:
- I recompiled
app-debug.apk
from command line as:
gradlew.bat assembleDebug
- Repeat installation of
app-debug.apk
from command line and became happy:
adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
This is definitely some gradle
problem in AndroidStudio 2.3
.
Finally I've SOLVED it!
Below a temporary solution. Issue was reported to Google.
First of all I found in Run log that Android Studion 2.3 tries to install app-debug.apk from many slices, like this:
$ adb install-multiple -r
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_1.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugdepdependencies.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_0.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_2.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_9.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_4.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_3.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_5.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_8.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_7.apk
E:Android_ProjectsActivityLifecycleappbuildintermediatessplit-apkdebugslicesslice_6.apk
E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
Then I tried to install only app-debug.apk
from command line by:
adb install -d E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
App was installed successfully but was failed to run on my phone.
And finally:
- I recompiled
app-debug.apk
from command line as:
gradlew.bat assembleDebug
- Repeat installation of
app-debug.apk
from command line and became happy:
adb install -rd E:Android_ProjectsActivityLifecycleappbuildoutputsapkapp-debug.apk
This is definitely some gradle
problem in AndroidStudio 2.3
.
edited Mar 10 '17 at 7:42
Kapil Rajput
5,91733046
5,91733046
answered Mar 9 '17 at 8:25
BarbosSergosBarbosSergos
1275
1275
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
add a comment |
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
+1. My multidex apk generated from Android Studio 2.3.3 crashed on launch when the apk was installed via adb command line. Re-assembling the apk from command line Gradle solved the issue!
– Yuntao
Jul 26 '17 at 1:14
add a comment |
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting:
add a comment |
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting:
add a comment |
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting:
I had the same issue in MIUI. Enabling OEM unlocking worked for me without disabling MIUI optimization.
Below is a screenshot of my Redmi 3s prime developer options setting:
edited Jul 26 '17 at 17:34
answered Jul 26 '17 at 14:06
Ayush ChaurasiaAyush Chaurasia
9115
9115
add a comment |
add a comment |
Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
add a comment |
Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
add a comment |
Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.
Have the same issue on Xiaomi Redmi 4X. Resolved it by turning off MIUI optimization at phone dev settings.
answered Aug 29 '17 at 15:02
NastromoNastromo
306212
306212
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
add a comment |
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
it worked for me, thanks
– Damara Jati P
Feb 12 '18 at 3:09
add a comment |
Just do the following step...
Build>Clean Project
after that Run project again, this worked for me
add a comment |
Just do the following step...
Build>Clean Project
after that Run project again, this worked for me
add a comment |
Just do the following step...
Build>Clean Project
after that Run project again, this worked for me
Just do the following step...
Build>Clean Project
after that Run project again, this worked for me
answered Aug 31 '17 at 13:10
Atif PervaizAtif Pervaiz
154112
154112
add a comment |
add a comment |
Try disabling the Instant run in Settings.
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
add a comment |
Try disabling the Instant run in Settings.
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
add a comment |
Try disabling the Instant run in Settings.
Try disabling the Instant run in Settings.
answered Mar 15 '17 at 18:41
Victor CVictor C
312
312
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
add a comment |
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
I am getting the same issue and I disabled instant run but then I get this error message. Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzru;
– Noah Tanenholtz
Mar 28 '17 at 19:58
add a comment |
This is caused by "instant run" feature, you can disable it by:
Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.
Uncheck the box next to Enable Instant Run and u are ready to go.
add a comment |
This is caused by "instant run" feature, you can disable it by:
Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.
Uncheck the box next to Enable Instant Run and u are ready to go.
add a comment |
This is caused by "instant run" feature, you can disable it by:
Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.
Uncheck the box next to Enable Instant Run and u are ready to go.
This is caused by "instant run" feature, you can disable it by:
Open the Settings or Preferences dialog. Navigate to Build, Execution, Deployment > Instant Run.
Uncheck the box next to Enable Instant Run and u are ready to go.
answered May 2 '17 at 5:54
VivekVivek
1416
1416
add a comment |
add a comment |
Change your applicationid in the build.gradle file.
for example-
com.example.myAndroidApp to com.example.somethingelse
then Sync your gradle then you can able to install your app,
if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.
Hope this may help you....
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
add a comment |
Change your applicationid in the build.gradle file.
for example-
com.example.myAndroidApp to com.example.somethingelse
then Sync your gradle then you can able to install your app,
if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.
Hope this may help you....
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
add a comment |
Change your applicationid in the build.gradle file.
for example-
com.example.myAndroidApp to com.example.somethingelse
then Sync your gradle then you can able to install your app,
if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.
Hope this may help you....
Change your applicationid in the build.gradle file.
for example-
com.example.myAndroidApp to com.example.somethingelse
then Sync your gradle then you can able to install your app,
if the previous applicationId is your production id the again change it the previous one now the device will allow to install the app.
Hope this may help you....
answered Mar 9 '17 at 6:16
JaganJagan
8711
8711
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
add a comment |
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
1
1
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I've tried your method and it works! I have the original app installed in my phone which is deployed by an old computer, then I move to a new computer and copy the source code to it and try to deploy it again, but failed. Maybe it is due to different version of android studio, or gradle, etc. I've been doing all kinds of funny stuffs in order to make the project works but failed. Android Studio told me to uninstall the app on the phone before deploying, I pressed OK but it said failed to install. Then I tried your method and it works!
– im_chc
Nov 10 '17 at 9:00
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
I think it is somehow due to the original not really being uninstalled, I still can't figure out why, but at least I am back on track now
– im_chc
Nov 10 '17 at 9:04
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
Helped. Thank you!
– DmitryKanunnikoff
Dec 13 '18 at 11:58
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
After returning to the original app id the problem is here again. I've switched off Instant Run, and it works.
– DmitryKanunnikoff
Dec 13 '18 at 12:03
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
I'm using Android Studio 3.4 Canary 8. This didn't help my case
– Jemsheer K D
Dec 14 '18 at 9:15
add a comment |
just close your emulator and run again the problem will be solved happy coding
add a comment |
just close your emulator and run again the problem will be solved happy coding
add a comment |
just close your emulator and run again the problem will be solved happy coding
just close your emulator and run again the problem will be solved happy coding
answered Aug 4 '17 at 13:35
haribabuharibabu
312
312
add a comment |
add a comment |
In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..
In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.
add a comment |
In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..
In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.
add a comment |
In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..
In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.
In my case, it was very a silly and funny mistake. I, accidentally without actually knowing, checked "Android Debug Bridge, Use libUsb backend". Actually it should stay unchecked..
In Mac Pro, Go Preferences - > Build, Execution,Deployment -> Debugger.
answered Oct 15 '18 at 18:50
Farruh HabibullaevFarruh Habibullaev
608815
608815
add a comment |
add a comment |
In my case, is was because my emulator ran out of disk space.
add a comment |
In my case, is was because my emulator ran out of disk space.
add a comment |
In my case, is was because my emulator ran out of disk space.
In my case, is was because my emulator ran out of disk space.
answered Nov 25 '18 at 14:59
mliumliu
827813
827813
add a comment |
add a comment |
Go to Build --> Clean Project --> Run
Thats all it takes.
add a comment |
Go to Build --> Clean Project --> Run
Thats all it takes.
add a comment |
Go to Build --> Clean Project --> Run
Thats all it takes.
Go to Build --> Clean Project --> Run
Thats all it takes.
answered Dec 30 '18 at 10:38
Sarvesh ThiruppathiSarvesh Thiruppathi
676
676
add a comment |
add a comment |
Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
add a comment |
Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
add a comment |
Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.
Faced same issues on MIUI phone resolved by making MIUI account and enable install by USB.
answered Mar 9 '17 at 6:04
Gautam DevGautam Dev
34913
34913
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
add a comment |
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
1
1
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
Install by USB is enabled
– Kapil Rajput
Mar 9 '17 at 6:07
add a comment |
Sometime app doesn't show on home screen,So
Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
add a comment |
Sometime app doesn't show on home screen,So
Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
add a comment |
Sometime app doesn't show on home screen,So
Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.
Sometime app doesn't show on home screen,So
Check your apps by going to setting - > apps -> and then uninstall from app setting might this work.
answered Mar 9 '17 at 5:57
Nikhil SharmaNikhil Sharma
384216
384216
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
add a comment |
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
2
2
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
app not exist in apps too :(
– Kapil Rajput
Mar 9 '17 at 6:01
add a comment |
Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
add a comment |
Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
add a comment |
Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.
Make sure your app is fully uninstalled from the device, check from the settings>applications. Some times ap not shows you in the app drawer but still in the system, if app is there you must uninstall from there, then check.
answered Mar 9 '17 at 6:34
warlockwarlock
1,70611323
1,70611323
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
add a comment |
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
app not exist in device i did check it in all possible ways
– Kapil Rajput
Mar 9 '17 at 6:35
add a comment |
Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here
add a comment |
Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here
add a comment |
Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here
Go to USB Debugging and disable MIUI Inspection and allow the phone to reboot. Things should be fine from here
answered Jul 2 '17 at 16:39
Harish AnantharamanHarish Anantharaman
11
11
add a comment |
add a comment |
Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:
1- Gradle Build (root level)
gradle
2 - Gradle build + clean (app level)
gradle app
3 - Choose app on the top bar (left of Run 'app')
4 - Clean Project:
Navigate to Build > Clean Project
And it should work now! You shouldn't disable instant run if you follow these steps
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
add a comment |
Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:
1- Gradle Build (root level)
gradle
2 - Gradle build + clean (app level)
gradle app
3 - Choose app on the top bar (left of Run 'app')
4 - Clean Project:
Navigate to Build > Clean Project
And it should work now! You shouldn't disable instant run if you follow these steps
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
add a comment |
Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:
1- Gradle Build (root level)
gradle
2 - Gradle build + clean (app level)
gradle app
3 - Choose app on the top bar (left of Run 'app')
4 - Clean Project:
Navigate to Build > Clean Project
And it should work now! You shouldn't disable instant run if you follow these steps
Here's my solution (there's no need to deactivate instant run) Do all these steps in the stated order:
1- Gradle Build (root level)
gradle
2 - Gradle build + clean (app level)
gradle app
3 - Choose app on the top bar (left of Run 'app')
4 - Clean Project:
Navigate to Build > Clean Project
And it should work now! You shouldn't disable instant run if you follow these steps
answered Jul 17 '17 at 11:01
GinggasGinggas
16829
16829
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
add a comment |
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
Build > Clean Project. Sometimes this is enough but if you do all the other steps it will work for sure
– Ginggas
Oct 3 '17 at 8:13
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
I'm using Android Studio 3.4 Canary 8. The error doesn't go away if i do the same as you mentioned above. It still persists. If you have any suggestions as to what may be the issue please revert.
– Jemsheer K D
Dec 14 '18 at 9:06
add a comment |
At me such error arose after renaming of a folder with the project.
Disabling Instance Run helped, but what if you do not need to disable it?
I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml
The error has disappeared.
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
add a comment |
At me such error arose after renaming of a folder with the project.
Disabling Instance Run helped, but what if you do not need to disable it?
I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml
The error has disappeared.
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
add a comment |
At me such error arose after renaming of a folder with the project.
Disabling Instance Run helped, but what if you do not need to disable it?
I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml
The error has disappeared.
At me such error arose after renaming of a folder with the project.
Disabling Instance Run helped, but what if you do not need to disable it?
I deleted all the tags mentioning the old folder name from the file myprojectappbuildintermediatesrestart-dexdebugbuild-info.xml
The error has disappeared.
answered Jul 30 '17 at 12:08
Petr VaryaginPetr Varyagin
395
395
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
add a comment |
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
Disabling Instance Run fixed the issue for me. :)
– pstorli
Jun 27 '18 at 16:51
add a comment |
In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.
add a comment |
In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.
add a comment |
In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.
In my case Instant Run hided the real cause of the problem which was INSUFFICIENT_SPACE due to small data partition and I also got "failed to establish session" error. After disabling Instant Run, the real problem was revealed and after fixing it and enabling Instant Run it worked.
answered Aug 14 '17 at 21:57
Andreas OikonomouAndreas Oikonomou
70118
70118
add a comment |
add a comment |
In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.
I hope this helps.. Merry coding!
add a comment |
In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.
I hope this helps.. Merry coding!
add a comment |
In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.
I hope this helps.. Merry coding!
In my own case, it was because my phone was out of space. For people that are facing this problem right now, if Clean Project + Build APKs does not work, check the available space on your phone or emulator.
I hope this helps.. Merry coding!
answered Jan 4 at 15:38
TaslimTaslim
1,22341625
1,22341625
add a comment |
add a comment |
Easily can be solved this problem.
Ex:- in Huawei GR3 mobile,
Goto Setting in your mobile -> Storage -> Storage Cleaner
add a comment |
Easily can be solved this problem.
Ex:- in Huawei GR3 mobile,
Goto Setting in your mobile -> Storage -> Storage Cleaner
add a comment |
Easily can be solved this problem.
Ex:- in Huawei GR3 mobile,
Goto Setting in your mobile -> Storage -> Storage Cleaner
Easily can be solved this problem.
Ex:- in Huawei GR3 mobile,
Goto Setting in your mobile -> Storage -> Storage Cleaner
answered Jan 15 at 16:35
BloodLossBloodLoss
12218
12218
add a comment |
add a comment |
Allow or enable "Installation from USB" in the developer options.
add a comment |
Allow or enable "Installation from USB" in the developer options.
add a comment |
Allow or enable "Installation from USB" in the developer options.
Allow or enable "Installation from USB" in the developer options.
edited Sep 1 '17 at 19:03
Quality Catalyst
4,23652550
4,23652550
answered Sep 1 '17 at 17:36
Imam MustholihImam Mustholih
1
1
add a comment |
add a comment |
can you checking in other devices?still that same issue
– Pratik Mohanrao Gondil
Mar 9 '17 at 5:46
yes i was testing on 2 devices today app is running on one device only and getting error by running on another device
– Kapil Rajput
Mar 9 '17 at 5:49
The problem could be the 1) Installed application is higher version compare to the installing one 2)The signature mismatch
– Madhukar Hebbar
Mar 9 '17 at 5:50
1
Kapil Rajput i am also suffering this problem after update Android studio 2.2 to 2.3
– Dileep Patel
Mar 9 '17 at 5:52
1
This worked for me after a lot of research. stackoverflow.com/a/42226014/6749161
– Bharat Kumar Emani
Jun 29 '17 at 12:20