Home > Blockchain >  App not installing in emulator after upgrading to android studio chipmunk
App not installing in emulator after upgrading to android studio chipmunk

Time:05-11

So pushing the run app button in android studio compiles the app. But it does not install the compiled app into emulator. App is compiled successfully .

> Task :app:packageGoogleDebug UP-TO-DATE
> Task :app:createGoogleDebugApkListingFileRedirect UP-TO-DATE
> Task :app:assembleGoogleDebug UP-TO-DATE

BUILD SUCCESSFUL in 16s 41 actionable tasks: 41 up-to-date

it just stop here. Adb is working fine. i can see the emulator log in logcat.

i have 2 build flavour. Both are the same. Compiles but not installing.

buildscript {
    repositories {
        google()
        mavenCentral()
        maven {url 'https://developer.huawei.com/repo/'}
        mavenLocal()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.0'
        classpath 'com.google.gms:google-services:4.3.10'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.21'
        classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
        classpath 'com.google.firebase:perf-plugin:1.4.1'
        classpath 'com.huawei.agconnect:agcp:1.6.5.300'
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
        maven {url 'https://developer.huawei.com/repo/'}
        mavenLocal()
        gradlePluginPortal()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

CodePudding user response:

Invalidating Catch worked for me. enter image description here

CodePudding user response:

I am also facing the same issue, I think until Google resolves that issue, you can use this command to install the .apk on the emulator. from the android studio's terminal.

./gradlew installDebug

enter image description here

CodePudding user response:

  1. delete all build folders
  2. invalidate caches and restart
  3. create a new API31 emulator and run 'app'

these steps worked for me.

  • Related