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.
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
CodePudding user response:
- delete all build folders
- invalidate caches and restart
- create a new
API31
emulator and run 'app'
these steps worked for me.