How to overcome app not installed error when building from Android Studio 3.0?
Asked Answered
E

9

6

For giving build for a debug Android app from Android Studio 3.0, it’s not installing in Mobile having Marshmallow and up (in Lollipop not tested).

I have used many solutions from Stack overflow but it’s still not working.

It’s always showing App Not Installed on mobile phone.

Echikson answered 31/10, 2017 at 12:10 Comment(17)
does your android mobile support marshmallow ? because when you are creating android app from studio it will ask for the target android version like if you choose android 4 success rate would be like 92+% that means your app what ever you build will run on 92+% devices .Foretopgallant
does your app is getting installed as apk in your mobile ?To do that you need to enable virtual debuggingForetopgallant
Its android studio 3.0 and compileSdkVersion 26, buildToolsVersion '26.0.2',minSdkVersion 15, targetSdkVersion 26Echikson
hi Tanmay I am not asking android studio configuration I am asking about your mobile android version.Does it support marshmellow?Foretopgallant
yes and virtual debugging option also on.Echikson
can you please enable log cat in android studio and start running the app if app is installed successfuly in your mobile then you can figureout the debug issue.Is your build getting success if you do runAs?Also for debuggin Ctrl+F9 is short cutForetopgallant
When running through usb its working but when i am sending the app link by uploading it to drive my debug apk its not installing.Echikson
hey bro you are totally confusing me how you can debug the app which is residing on google drive?With usb only you can debug apk which will reside in your actual mobile. I mean you run the code if the build is success from android studio.It will create an apk in your device r8.That you can debug but not on drive.Moreover you need to host your app if you want remote debugging .I think you are getting confused with remote and local debuggingForetopgallant
Thanks Pradeep for your support . I have to take the apk file from outputs of Android Studio and Upload it to my Google drive and Share the Shareablelink for testing. By doing that its giving me error like "App Not Installed".Echikson
Let us continue this discussion in chat.Echikson
Hi Tanmay, Did you got any solution which worked for you, because I am facing same issue after upgrading android studio from 2.3 to 3.0Interfluent
I just reinstalled the version 2.3.3.Echikson
Why don't you use Alpha release channels using the Google Play Console? You just need to become a tester of your app and you can download it from everywhere, like an app on the Play Store. I don't think you can just install the apk from Google Drive and expect it's working.Fillender
@TanmaySahoo what is the message reported?, did you see a dialog reporting the problem?Coenzyme
Hi Tanmay, I have got the same problem like you, App is installing while connecting via USB to mobile, but while sending .apk file to others it saying "App not Installed"(both debug and release).I have tried different solutions from stackoverflow but none worked for me.Can you please help me on this ? #49231452Cutter
I suggest trying this out. https://mcmap.net/q/1632546/-how-to-fix-android-app-not-installed-errorThrive
https://mcmap.net/q/196324/-flutter-is-not-able-to-install-the-apk-into-the-real-device-suddenlyDrone
C
8

Well the original question doesn´t have enough information, but we can have some info getting some comments:

  • Android studio 3.0 and compileSdkVersion 26, buildToolsVersion '26.0.2',minSdkVersion 15, targetSdkVersion 26

  • virtual debugging option also on.

  • I am facing same issue after upgrading android studio from 2.3 to 3.0

Ok the message "App Not Installed" will refer to multiple causes, and please returning to Android Studio 2.3. from 3.0 is not an option!

When we upgrade from Android Studio 2.3 to 3.0 we can find some configuration issues caused mainly by the support libraries, that will cause that our application could not be installed.

To avoid this problem we need to invalidate cache in Android Studio 3.0+ and the problem will be solved.

introducir la descripción de la imagen aquí

Please try this option.

Coenzyme answered 7/12, 2017 at 22:58 Comment(2)
agree with @Jorgesys, happen to me when using another pc, clean, rebuild, and restart solve problemSwede
I have to sign in to up vote your solution. Work for me after a whole day of trying other solutions. (Android Studio 3.3.1)Scriber
E
5

First try to generate the debug apk by below steps:

  1. Goto Run
  2. Edit Configurations
  3. select + icon on the left side
  4. Select Gradle
  5. Click the Configuration tab if it is not selected in the right side
  6. In Gradle project add your app as a gradle project
  7. From the tasks select/set "assemble"
  8. Press ok

Now run that configuration. you will have the debug apk ready in build/outputs/apk/app-debug.apk. Now install that apk in any device. It should work.

Echovirus answered 8/12, 2017 at 10:0 Comment(1)
This should have been the accepted Answer.Polyamide
W
3

As of Android Studio 3 the Run-Button builds test-only apks. See documentation

Note: The Run button builds an APK with testOnly="true", which means the APK can only be installed via adb (which Android Studio uses). If you want a debuggable APK that people can install without adb, select your debug variant and click Build > Build APK(s).

This solved my issue: https://mcmap.net/q/107942/-adb-install-fails-with-install_failed_test_only

Willaims answered 2/5, 2018 at 8:12 Comment(1)
For me this was the solution.Dittmer
D
1

None of the other answers solved the issue. The build and install was going fine when it's triggered from android studio with a device connected to the computer or with an emulator, the only issue was when sending the apk via email or hockey app.

How I could fix it (and this might not be the solution for everybody), I enabled the multidex support by adding this to the default config:

// Enabling multidex support.
    multiDexEnabled true

PS: Usually Android Studio build would fail if the multidex support has to be enabled, in this new version this didn't happen, but my Jenkins build was broken and this is how I could solve it.

Deice answered 8/12, 2017 at 12:23 Comment(0)
E
1

Ohh this is exactly we have to do:

  1. Go to Build
  2. Build Apk
  3. Locate Apk
Echikson answered 6/3, 2018 at 18:56 Comment(0)
B
0

In Android studio goto build menu and then Build Aps(s). Its work fine for me.

Banket answered 14/3, 2018 at 10:28 Comment(1)
This seems to be just a repeat of this existing answer.Sangsanger
N
0

There are 2 type of APK Signature #1 JAR signature (aka v1) and #2full APK sign (aka v2): Not all the devices recognize it ,so make sure you anable both V1 and V2.

enter image description here

Narra answered 15/12, 2018 at 12:53 Comment(0)
C
0

In my case my debug apk worked fine but when I tried to install Signed apk then following error shows

"APP not Installed"

then I haved added

multiDexEnabled true 

in gradle fine then its work fine

Calmas answered 3/1, 2019 at 8:5 Comment(1)
I dont think there is a logical reason why this should work.Thrive
L
-2

Android Studio -> Build -> Build Bundle(s) / APK(s) -> Build APK(s) -> Reinstall new APK on mobile phone

Build Unsigned App

Laynelayney answered 24/5, 2019 at 13:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.