gpt4 book ai didi

android - 升级到 android studio 花栗鼠后,应用程序未安装在模拟器中

转载 作者:行者123 更新时间:2023-12-04 23:41:27 25 4
gpt4 key购买 nike

因此,在 android studio 中按下运行应用程序按钮会编译应用程序。但它不会将编译后的应用程序安装到模拟器中。应用程序编译成功。

> 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
它就停在这里。亚行工作正常。我可以在 logcat 中看到模拟器登录。
我有 2 种 flavor 。两者都是一样的。编译但不安装。
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
}

最佳答案

找到了罪魁祸首..查看android studio日志..它的HMS工具包..如果你们安装了那个......只需禁用插件,直到华为修复它..运行按钮将正常工作..

2022-05-10 16:52:43,924 [  10645]  ERROR - e.plugins.cl.PluginClassLoader - JDK: 11.0.12; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o. 
2022-05-10 16:52:43,924 [ 10645] ERROR - e.plugins.cl.PluginClassLoader - OS: Mac OS X
2022-05-10 16:52:43,924 [ 10645] ERROR - e.plugins.cl.PluginClassLoader - Plugin to blame: HMS Toolkit version: 6.3.0.3003.AF
2022-05-10 16:52:43,926 [ 10647] ERROR - e.plugins.cl.PluginClassLoader - Calling `ClassLoader#getResource` with leading slash doesn't work; strip
com.intellij.diagnostic.PluginException: /icons/pushkit/add_light.png [Plugin: com.huawei.deveco.hms]
at com.intellij.ide.plugins.cl.PluginClassLoader.doFindResource(PluginClassLoader.java:492)
at com.intellij.ide.plugins.cl.PluginClassLoader.getResourceAsStream(PluginClassLoader.java:462)
at com.huawei.kits.pushkit.utils.PushIconUtils.load(PushIconUtils.java:93)
at com.huawei.kits.pushkit.utils.PushIconUtils.<clinit>(PushIconUtils.java:62)
at com.huawei.kits.pushkit.ui.SampleMessagePanel.initPanel(SampleMessagePanel.java:87)
at com.huawei.kits.pushkit.ui.SampleMessagePanel.<init>(SampleMessagePanel.java:80)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.huawei.hms.core.main.module.manager.resloader.JarLoader.createObject(JarLoader.java:130)
at com.huawei.hms.core.main.module.manager.Module.lambda$createModuleView$0(Module.java:245)
at java.base/java.util.TreeMap.forEach(TreeMap.java:1002)
at com.huawei.hms.core.main.module.manager.Module.createModuleView(Module.java:239)
at com.huawei.hms.core.main.module.manager.Application.initAllModuleViews(Application.java:287)
at com.huawei.hms.core.component.InitProjectComponent.<init>(InitProjectComponent.java:65)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490)
at com.intellij.serviceContainer.ConstructorInjectionKt.instantiateUsingPicoContainer(constructorInjection.kt:52)
at com.intellij.serviceContainer.ComponentManagerImpl.instantiateClassWithConstructorInjection(ComponentManagerImpl.kt:877)
at com.intellij.serviceContainer.MyComponentAdapter.doCreateInstance(MyComponentAdapter.kt:35)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstanceUncached(BaseComponentAdapter.kt:113)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance(BaseComponentAdapter.kt:67)
at com.intellij.serviceContainer.BaseComponentAdapter.getInstance$default(BaseComponentAdapter.kt:60)
at com.intellij.serviceContainer.ComponentManagerImpl.createComponents(ComponentManagerImpl.kt:407)
at com.intellij.openapi.project.impl.ProjectExImpl.init(ProjectExImpl.kt:183)
at com.intellij.openapi.project.impl.ProjectManagerImpl.initProject(ProjectManagerImpl.java:178)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.prepareProject(ProjectManagerExImpl.kt:339)
at com.intellij.openapi.project.impl.ProjectManagerExImpl.access$prepareProject(ProjectManagerExImpl.kt:56)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:123)
at com.intellij.openapi.project.impl.ProjectManagerExImpl$doOpenAsync$1.invoke(ProjectManagerExImpl.kt:56)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:94)
at com.intellij.openapi.project.impl.ProjectUiFrameAllocator$run$progressRunner$1.apply(ProjectFrameAllocator.kt:71)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:243)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:183)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:705)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:647)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:63)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:243)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1692)
at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)```

关于android - 升级到 android studio 花栗鼠后,应用程序未安装在模拟器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72183226/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com