15

Keep getting this error when I try to install the downloaded sdk. Any ideas?

The app builds and tests without errors. I get no detailed error message, only App not installed

How can I get a more detailed error message? Any ideas?

My very first build worked, so I guess it could be the version number not matching up. However, I have tried harcoding the number, still won't install:

   defaultConfig {
        applicationId "com.rgcalendar"
        minSdkVersion 16
        targetSdkVersion 22
        versionCode 23
        versionName "1.0"
        ndk {
            abiFilters "armeabi-v7a", "x86"
        }
    }
Bomber
  • 7,195
  • 16
  • 66
  • 121

5 Answers5

18

I was running into this issue with an App Center build on a Galaxy S8. I had tried uninstalling the app, restarting the phone and toggling the allow Unknown Sources switch, but the thing that fixed it for me was turning off Play Protect in the Google Play store. While previous builds had asked me to bypass Play Protect, this build just gave me the "App not installed" error.

To turn Play Protect off:

  1. Open the Play Store
  2. Tap the menu in the top left
  3. Tap Play Protect
  4. Turn off Scan device for security threats

You'll probably want to turn this back on if you're using a personal device.

btrane
  • 205
  • 2
  • 4
0

I had the same issue as I directly uploaded the apk creataed by the Run-Button in Android Studio. Creating a new debug apk by ./gradlew assembleDebug solved the issue.

memres
  • 176
  • 8
0

Are you signing the build yourself? If you are, look in the app/build.gradle file.

Search for buildTypes and look at release.

Remove signingConfig signingConfigs.debug.

buildTypes {
    release {
        // Caution! In production, you need to generate your own keystore file.
        // see https://reactnative.dev/docs/signed-apk-android.
        signingConfig signingConfigs.debug // <-- REMOVE THIS LINE
        minifyEnabled enableProguardInReleaseBuilds
        proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
    }
    debug {
        signingConfig signingConfigs.debug
    }
}
Karl Gjertsen
  • 4,097
  • 8
  • 35
  • 61
0

I had the same issue, I had a previous version of the app installed on my phone. Uninstalling the older version and trying again made the message go away.

Yannickv
  • 467
  • 3
  • 12
-1

You need to sign with debug.keystore to distribute the apk.

abalta
  • 817
  • 1
  • 10
  • 18