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

前端 未结 9 615
独厮守ぢ
独厮守ぢ 2021-01-06 04:25

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

相关标签:
9条回答
  • 2021-01-06 04:40

    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.

    Please try this option.

    0 讨论(0)
  • 2021-01-06 04:45

    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://stackoverflow.com/a/46661987/7756799

    0 讨论(0)
  • 2021-01-06 04:45

    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.

    0 讨论(0)
  • 2021-01-06 04:53

    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.

    0 讨论(0)
  • 2021-01-06 04:53

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

    0 讨论(0)
  • 2021-01-06 04:55

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

    "APP not Installed"

    then i add

    multiDexEnabled true 
    

    in gradel fine then its work fine

    0 讨论(0)
提交回复
热议问题