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
}
7
Answers
Found the culprit.. looking at android studio logs.. Its the HMS toolkit.. if you guys have that installed... just disable the plugin until huawei fix it.. the run button will work properly..
Invalidating cache worked for me.
API31
emulator and run ‘app’these steps worked for me.
When I was facing the same issue, I raised a ticket to the Google team, they said Please uninstall the HMS ToolKit plugin, because It was causing issues.
you can check here.
https://issuetracker.google.com/issues/232107670
For me the solution was to cold boot the emulator
Turns out I just needed to look at my Event Log.
At least for me the culprit was HMS toolkit. I am not sure why it showed that the build was successful but it did not install.
Invalidate caches and restart.
Android Studio shows a small popup on the bottom right that there is
a problem with HMS toolkit. Click that and disable HMS toolkit.
It started working after that.