IT数码 购物 网址 头条 软件 日历 阅读 图书馆
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
图片批量下载器
↓批量下载图片,美女图库↓
图片自动播放器
↓图片自动播放器↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁
 
   -> 移动开发 -> Android Studio Bumblebee | 2021.1.1 Patch 2 修复BUG -> 正文阅读

[移动开发]Android Studio Bumblebee | 2021.1.1 Patch 2 修复BUG

一般修复和功能

此更新解决了以下问题:

Android Gradle 插件

  • 问题 #213534628:Android Gradle 插件 7.1.0-rc01 在单元测试期间无法执行 ASM 字节码转换

    将Android Gradle Plugin 版本升级到7.1.0-rc01 后,在运行testDebugUnitTest任务时,只有transformDebugUnitTestClassesWithAsm在执行,而不是transformDebugClassesWithAsm. 但是,如果 Android Gradle 插件降级到 7.0.2,这两个任务都会执行
    
    重现步骤:
    使用 AGP 7.1.0-rc01、Dagger Hilt 和 Robolectric 创建一个 Android 应用
    请求 Activity 中的依赖项
    启动步骤中提到的活动。2 Robolectric 单元测试
    启动的活动没有被依赖注入
    检查 Gradle 任务testDebugUnitTest,transformDebugClassesWithAsm不执行,仅transformDebugUnitTestClassesWithAsm
  • 问题 #210484302:Android Studio 2021.1.1 beta5。Gradle 同步失败并显示“无法加载类 'com.android.build.api.extension.AndroidComponentsExtension'”。

    1) Install 2021.1.1 beta5
    2) Open a project
    3) Run Gradle Project Sync
    4) Error Gradle sync fails with Unable to load class 'com.android.build.api.extension.AndroidComponentsExtension'.
    
    This error occurs for every project
    
    I also tried the following:
    - Restart Android Studio
    - Clean project
    - Download Android Studio instead of updating
    I still got the error message
    
    Java 11
    Gradle version 7.2
    Dependencies:
          classpath 'com.android.tools.build:gradle:7.1.0-beta05'
          classpath 'com.google.firebase:perf-plugin:1.4.0'
          classpath 'com.google.gms:google-services:4.3.10'
          classpath 'com.google.firebase:firebase-crashlytics-gradle:2.8.1'
  • 问题 #194937528Android Gradle 插件 7.0.0 中的 Groovy DSL 无法使用一些新的 DSL 块

    Studio Build: 2020.3.1 Version of Gradle Plugin: 7.0.0 Version of Gradle: 7.0.2 Version of Java: 11 OS: MasOS 11.4
    
    Steps to Reproduce:
    
    Check out this repo (https://github.com/bryansills/arcticfox)
    Try to sync Gradle
    Expected: Gradle syncs
    $ ./gradlew --stacktrace
    
    FAILURE: Build failed with an exception.
    
    * Where:
    Build file '/Users/snip/android/arcticfox/app/build.gradle' line: 8
    
    * What went wrong:
    A problem occurred evaluating project ':app'.
    > No signature of method: build_eftkwhu8wqs95vvbudoamdmij.android() is applicable for argument types: (build_eftkwhu8wqs95vvbudoamdmij$_run_closure1) values: [build_eftkwhu8wqs95vvbudoamdmij$_run_closure1@444579d3]
    
    * Try:
    Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    
    * Exception is:
    org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
            at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
            at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
            at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
            at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
            at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
            at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
            at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
            at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:43)
            at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:250)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:277)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:249)
            at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
            at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
            at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
            at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:100)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:250)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$withProjectLock$3(DefaultProjectStateRegistry.java:310)
            at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:310)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:291)
            at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:249)
            at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:91)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
            at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
            at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:63)
            at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:723)
            at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:150)
            at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:41)
            at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:69)
            at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:46)
            at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:64)
            at org.gradle.configuration.BuildOperationFiringProjectsPreparer$ConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:56)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$run$1(DefaultBuildOperationExecutor.java:71)
            at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.runWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:45)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:71)
            at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
            at org.gradle.initialization.DefaultGradleLauncher.prepareProjects(DefaultGradleLauncher.java:226)
            at org.gradle.initialization.DefaultGradleLauncher.doClassicBuildStages(DefaultGradleLauncher.java:164)
            at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:149)
            at org.gradle.initialization.DefaultGradleLauncher.executeTasks(DefaultGradleLauncher.java:125)
            at org.gradle.internal.invocation.GradleBuildController$1.create(GradleBuildController.java:71)
            at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:213)
            at org.gradle.internal.invocation.GradleBuildController.doBuild(GradleBuildController.java:67)
            at org.gradle.internal.invocation.GradleBuildController.run(GradleBuildController.java:56)
            at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:31)
            at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
            at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:66)
            at org.gradle.tooling.internal.provider.ValidatingBuildActionRunner.run(ValidatingBuildActionRunner.java:32)
            at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:90)
            at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
            at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:49)
            at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner$3.call(RunAsBuildOperationBuildActionRunner.java:44)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:200)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:195)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:75)
            at org.gradle.internal.operations.DefaultBuildOperationRunner$3.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:153)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:68)
            at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:62)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.lambda$call$2(DefaultBuildOperationExecutor.java:76)
            at org.gradle.internal.operations.UnmanagedBuildOperationWrapper.callWithUnmanagedSupport(UnmanagedBuildOperationWrapper.java:54)
            at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:76)
            at org.gradle.launcher.exec.RunAsBuildOperationBuildActionRunner.run(RunAsBuildOperationBuildActionRunner.java:44)
            at org.gradle.launcher.exec.InProcessBuildActionExecuter.lambda$execute$0(InProcessBuildActionExecuter.java:59)
            at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:86)
            at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:58)
            at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)
            at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.lambda$execute$0(BuildTreeScopeLifecycleBuildActionExecuter.java:34)
            at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
            at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:33)
            at org.gradle.launcher.exec.BuildTreeScopeLifecycleBuildActionExecuter.execute(BuildTreeScopeLifecycleBuildActionExecuter.java:28)
            at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:104)
            at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:55)
            at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:64)
            at org.gradle.tooling.internal.provider.SubscribableBuildActionExecuter.execute(SubscribableBuildActionExecuter.java:37)
            at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.lambda$execute$0(SessionScopeLifecycleBuildActionExecuter.java:54)
            at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:67)
            at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.execute(SessionScopeLifecycleBuildActionExecuter.java:50)
            at org.gradle.tooling.internal.provider.SessionScopeLifecycleBuildActionExecuter.execute(SessionScopeLifecycleBuildActionExecuter.java:36)
            at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
            at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
            at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:59)
            at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
            at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
            at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
            at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
            at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
            at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
            at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
            at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
            at org.gradle.util.Swapper.swap(Swapper.java:38)
            at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
            at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
            at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
            at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
            at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
            at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
            at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
            at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
            at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
    Caused by: groovy.lang.MissingMethodException: No signature of method: build_eftkwhu8wqs95vvbudoamdmij.android() is applicable for argument types: (build_eftkwhu8wqs95vvbudoamdmij$_run_closure1) values: [build_eftkwhu8wqs95vvbudoamdmij$_run_closure1@444579d3]
            at build_eftkwhu8wqs95vvbudoamdmij.run(/Users/bsills/android/arcticfox/app/build.gradle:8)
            at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
            ... 138 more
  • 问题 #201080958AGP 7.1 新发布 API:创建的 javadoc jar 未签名

    DESCRIBE THE ISSUE IN DETAIL:
    
    STEPS TO REPRODUCE:
    
    Use the new android.publishing API and call withJavadocJar()
    Add maven-publish and signing
    Create a publication and enable singing for it
    Run ./gradlew publishToMavenLocal
    I've attached a sample project which contains the whole signing setup including a test gpg key.
    
    When you look at what was published you see
    
    /Users/gabriel/.m2/repository/com/example/
    └── app
        ├── 1.0
        │   ├── app-1.0-debug-javadoc.jar
        │   ├── app-1.0-debug-sources.jar
        │   ├── app-1.0-debug-sources.jar.asc
        │   ├── app-1.0-debug.aar
        │   ├── app-1.0-debug.aar.asc
        │   ├── app-1.0-release-javadoc.jar
        │   ├── app-1.0-release-sources.jar
        │   ├── app-1.0-release.aar
        │   ├── app-1.0-release.aar.asc
        │   ├── app-1.0.module
        │   ├── app-1.0.module.asc
        │   ├── app-1.0.pom
        │   └── app-1.0.pom.asc
        └── maven-metadata-local.xml
  • 问题 #216160972:C lassesDataSourceCache 应该使用最新的 Asm 版本

    I'm using the new ASM transform API and trying to work-around 206655905, by forcing ASM version in the classpath to 8 or above, but it turns to be useless, because here it's always set to ASM7. I believe this should use the latest available version in the classpath, or, at least the same version that is set in the ComponentImpl. (ideally, the ComponentImpl should also resolve the ASM version dynamically based on the dependency in classpath).
    
    P.S. I know the bug was fixed in AGP 7.2.0-alpha06, but is there a chance the fix can be backported to earlier versions, or is there another workaround? Otherwise, this makes the new ASM transform api practically unusable with the prior AGP versions, if there happen to be the Moshi dependency on the users' site.
    
    Studio Build: N/A Version of Gradle Plugin: 7.0.4 Version of Gradle: N/A Version of Java: N/A OS: N/A
  • 问题 #217880219Android Studio BumbleBee 并不总是部署最新的更改

    Our team has been getting reports from multiple devs that local changes are not being updated after Android Studio builds and deploys the APK. It seems as if some cached APK is being installed instead.
    
    This only started happening after bumping to AGP 7.1 and possibly in combination of using BumbleBee stable
    
    Uploaded an example idea.log
    
    Let me know any other info I can provide. I am happy to help.
    
    Studio Build: BumbleBee Stable and Chipmunk Beta 1
    
    Version of Gradle Plugin: 7.1
    
    Version of Gradle: 7.3
    
    Version of Java: 11
    
    OS: macOS

C++ 构建

  • 问题 #216261600:ModelCache.safeGet(androidProjectResult.androidProject::getNdkVersion, "") 不能为空

    Build: AI-211.7628.21.2111.8092744, 202201190556,
    
    AI-211.7628.21.2111.8092744, JRE 11.0.11+0-b60-7590822x64 JetBrains s.r.o., OS Mac OS X(x86_64) v12.1, screens 4096.0x2304.0; Retina
    
    AS: Bumblebee | 2021.1.1; Kotlin plugin: 211-1.5.30-release-408-AS7442.40; Android Gradle Plugin: 4.1.0; Gradle: 6.7.1; Gradle JDK: version 11.0.11; NDK: from local.properties: 21.1.6352462, latest from SDK: (not found); LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901, from PATH: (not found)
    
    IMPORTANT: Please read https://developer.android.com/studio/report-bugs.html carefully and supply all required information.
    
    I updated Android Studio this morning,and when i recompile the project, it keeps reporting this "ModelCache.safeGet(androidProjectResult.androidProject::getNdkVersion, "") must not be null" error. I have specified the ndk dir in local.properties and also specified ndkVersion in build.gradle file. so what is going on here ?  Am I missing something?

代码编辑器

  • 问题 #201148610:Android Studio Live 模板中的错误 - className() 表达式未解析类名

    I was adding a custom live template that used "className()" to fill in the class name.  I could not get it to work. It would not bring back the class name - instead it opened a box in the code to fill it in myself.  I noticed the same problematic behavior for the built in templates "soutm" and "geti", so this seems to confirm the problem is not specific to my custom template, but rather any template using the "className()" expression.
    
    To recreate simple try to use the "soutm" live template in any java method.  It should print the current class and method name to System.out.  For example, take the following method:
    
        public void myMethod(int myInt) {
            System.out.println("this is myMethod");
        }
    
    Then attempt to use the "soutm" live template within this method to to print the class and method.
    I get the following:
    
    System.out.println(".myMethod");
    
    Notice that the live template resolved the method name but did not resolve the class name.  
    
    Build: AI-203.7717.56.2031.7678000, 202108262153,
    
    AI-203.7717.56.2031.7678000, JRE 11.0.10+0-b96-7249189x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 2400.0x1350.0, 2400.0x1350.0
    
    AS: Arctic Fox | 2020.3.1 Patch 2; Kotlin plugin: 203-1.5.31-release-550-AS7717.8; Android Gradle Plugin: (plugin information not found); Gradle: 6.7.1; Gradle JDK: version 11.0.10; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)
    
    IMPORTANT: Please read https://developer.android.com/studio/report-bugs.html carefully and supply all required information.

D8/R8

  • 问题 #210148618:java.lang.NoSuchMethodError:没有静态方法 $jacocoInit

  • 问题 #210485236Android 测试覆盖因 Mockito 错误而中断

  • 问题 #211646483需要解决 API 31 上损坏的 CAS 实现的方法

  • 问题 #212279104:不支持密封类

    Error: com.android.tools.r8.errors.CompilationError: Sealed classes are not supported
    Compilation failed
    Exception in thread "main" java.lang.RuntimeException: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    	at com.android.tools.r8.utils.ExceptionUtils.withMainProgramHandler(ExceptionUtils.java:189)
    	at com.android.tools.r8.R8.main(R8.java:1147)
    Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
    	at Version.fakeStackEntry(Version_3.2.22-dev.java:0)
    	at com.android.tools.r8.utils.ExceptionUtils.failWithFakeEntry(ExceptionUtils.java:139)
    	at com.android.tools.r8.utils.ExceptionUtils.failCompilation(ExceptionUtils.java:89)
    	at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:83)
    	at com.android.tools.r8.utils.ExceptionUtils.withR8CompilationHandler(ExceptionUtils.java:69)
    	at com.android.tools.r8.R8.run(R8.java:1131)
    	at com.android.tools.r8.R8.lambda$main$27(R8.java:1147)
    	at com.android.tools.r8.utils.ExceptionUtils.withMainProgramHandler(ExceptionUtils.java:186)
    	... 1 more
    Caused by: com.android.tools.r8.errors.CompilationError: Sealed classes are not supported
    	at com.android.tools.r8.graph.JarClassFileReader$CreateDexClassVisitor.visitPermittedSubclass(JarClassFileReader.java:333)
    	at com.android.tools.r8.org.objectweb.asm.ClassReader.accept(ClassReader.java:706)
    	at com.android.tools.r8.graph.JarClassFileReader.internalRead(JarClassFileReader.java:122)
    	at com.android.tools.r8.graph.JarClassFileReader.lambda$read$0(JarClassFileReader.java:96)
    	at com.android.tools.r8.utils.ExceptionUtils.lambda$withOriginAndPositionAttachmentHandler$5(ExceptionUtils.java:238)
    	at com.android.tools.r8.utils.ExceptionUtils.withOriginAndPositionAttachmentHandler(ExceptionUtils.java:246)
    	at com.android.tools.r8.utils.ExceptionUtils.withOriginAndPositionAttachmentHandler(ExceptionUtils.java:234)
    	at com.android.tools.r8.utils.ExceptionUtils.withOriginAttachmentHandler(ExceptionUtils.java:225)
    	at com.android.tools.r8.graph.JarClassFileReader.read(JarClassFileReader.java:96)
    	at com.android.tools.r8.graph.JarClassFileReader.read(JarClassFileReader.java:92)
    	at com.android.tools.r8.utils.ClassProvider$ClassFileResourceReader.collectClass(ClassProvider.java:105)
    	at com.android.tools.r8.utils.ClassMap$ConcurrentClassLoader.get(ClassMap.java:270)
    	at com.android.tools.r8.utils.ClassMap$ConcurrentClassLoader.get(ClassMap.java:246)
    	at com.android.tools.r8.utils.ClassMap.get(ClassMap.java:115)
    	at com.android.tools.r8.utils.ClassMap.forceLoad(ClassMap.java:198)
    	at com.android.tools.r8.graph.LazyLoadedDexApplication$AllClasses.<init>(LazyLoadedDexApplication.java:108)
    	at com.android.tools.r8.graph.LazyLoadedDexApplication.loadAllClasses(LazyLoadedDexApplication.java:186)
    	at com.android.tools.r8.graph.DirectMappedDexApplication$Builder.<init>(DirectMappedDexApplication.java:191)
    	at com.android.tools.r8.graph.LazyLoadedDexApplication.toDirect(LazyLoadedDexApplication.java:253)
    	at com.android.tools.r8.R8.run(R8.java:299)
    	at com.android.tools.r8.R8.run(R8.java:267)
    	at com.android.tools.r8.R8.lambda$run$26(R8.java:1132)
    	at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:80)
    	... 5 more
  • 问题 #215742573:在 Chrome 中启用水平类合并时出现 NullPointerException

  • 问题 #215337594虚拟方法合并后的 AbstractMethodError

  • 问题 #216208539由于不正确的 init-class 输出类型而无法验证堆栈帧

  • 问题 #213369062Dex 输入使用未定义的寄存器

  • 问题 #216473340StringBuilderOptimizerAnalysisTest 在发布分支上失败

  • 问题 #217727847R8 中的非确定性

部署

  • 问题 #181004316运行设备所有者应用程序的项目失败并显示“无法终止现有进程”错误消息

    工作室构建:
    Android Studio 北极狐 | 2020.3.1 Canary 7
    Build #AI-203.7148.57.2031.7136282,于 2021 年 2 月 10 日构建
    运行时版本:11.0.8+0-b944-P17168821 amd64
    VM:OpenJDK 64-Bit Server VM by N/A
    Linux 4.15.0 -135-generic
    GC:G1 Young Generation,G1 Old Generation
    内存:4096M
    内核:8
    注册表:external.system.auto.import.disabled=true
    
    当前桌面:KDE
    
    版本 Gradle 插件:4.1.2
    版本 Gradle:6.8
    版本Java:11.0.8+0-b944-P17168821
    操作系统:Linux Ubuntu Bionic
    
    重现步骤:
    1. 使用 Android Studio 打开一个项目
    2. 插入一个设备,该设备安装为 Device Owner 应用程序(通过 QR 码或 NFC 标签)
    2. 点击“播放”(或“调试”)
    3. 参见进度:
        =>“Gradle Build Running”
        =>“等待所有目标设备上线”
        然后任务
       在“运行”窗口中消失,我们收到消息“无法终止 <app_pkg_name> 的现有进程”
    4 . 检查设备:应用程序没有更新也没有重新启动。
    
    该问题出现在许多三星设备上(刚刚在刚擦过的 Galaxy S21 (Android 11) 上进行了测试,但在 Note10、Galaxy S8 等上的行为相同)。
    
    通过 adb install 命令从命令行安装效果很好
    
    安装标准应用程序(未在设备所有者模式下安装)效果很好。
    
    升级到 gradle 插件 7.0.0-alpha7 (gradle 6.8.1) 也不起作用(同样的问题)。
    
    尝试在运行/调试配置窗口中启用“始终使用包管理器安装(禁用 Android 11 及更高版本上的部署优化)”并不能解决问题。
    
    从 Android Studio 4.1.2 安装应用程序效果很好。

设计工具

  • 问题 #206862224启用非传递 R 类时,撰写预览无法从其他模块中找到资源

    重现:
    
    创建一个包含两个模块的项目
    在gradle.properties集合android.nonTransitiveRClass=true
    在模块一中添加资源
    在模块二的 build.gradle 集中implementation(project(":module-one"))
    在模块二中创建一个@Composable函数,该函数引用模块一中的资源文件,并@Preview为它创建一个
    Android Studio 中的预览面板将显示渲染问题,例如
    android.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F0700D2.
    	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1153)
    	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1129)
    	at android.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1133)
    	at android.content.res.Resources_Delegate.getDimension(Resources_Delegate.java:604)
    	at android.content.res.Resources.getDimension(Resources.java:749)
    	at androidx.compose.ui.res.PrimitiveResources_androidKt.dimensionResource(PrimitiveResources.android.kt:79)
    	at <REDACTED>
    	at <REDACTED>
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.material.SurfaceKt$Surface$6.invoke(Surface.kt:267)
    	at androidx.compose.material.SurfaceKt$Surface$6.invoke(Surface.kt:254)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.material.SurfaceKt.Surface-F-jzlyU(Surface.kt:251)
    	at androidx.compose.material.SurfaceKt.Surface-F-jzlyU(Surface.kt:110)
    	at androidx.compose.material.CardKt.Card-F-jzlyU(Card.kt:66)
    	at <REDACTED>
    	at <REDACTED>
    	at <REDACTED>
    	at <REDACTED>
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:116)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at <REDACTED>
    	at <REDACTED>
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.material.TextKt.ProvideTextStyle(Text.kt:252)
    	at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:81)
    	at androidx.compose.material.MaterialThemeKt$MaterialTheme$1.invoke(MaterialTheme.kt:80)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.material.MaterialThemeKt.MaterialTheme(MaterialTheme.kt:72)
    	at <REDACTED>
    	at <REDACTED>
    	at <REDACTED>
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
    	at androidx.compose.ui.tooling.CommonPreviewUtils.invokeComposableMethod(CommonPreviewUtils.kt:149)
    	at androidx.compose.ui.tooling.CommonPreviewUtils.invokeComposableViaReflection$ui_tooling_release(CommonPreviewUtils.kt:188)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:571)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1$composable$1.invoke(ComposeViewAdapter.kt:569)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:608)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3$1.invoke(ComposeViewAdapter.kt:564)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.ui.tooling.InspectableKt.Inspectable(Inspectable.kt:64)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$WrapPreview$1.invoke(ComposeViewAdapter.kt:513)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$WrapPreview$1.invoke(ComposeViewAdapter.kt:512)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.ui.tooling.ComposeViewAdapter.WrapPreview(ComposeViewAdapter.kt:508)
    	at androidx.compose.ui.tooling.ComposeViewAdapter.access$WrapPreview(ComposeViewAdapter.kt:121)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3.invoke(ComposeViewAdapter.kt:564)
    	at androidx.compose.ui.tooling.ComposeViewAdapter$init$3.invoke(ComposeViewAdapter.kt:561)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.ui.platform.ComposeView.Content(ComposeView.android.kt:384)
    	at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:228)
    	at androidx.compose.ui.platform.AbstractComposeView$ensureCompositionCreated$1.invoke(ComposeView.android.kt:227)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.ui.platform.CompositionLocalsKt.ProvideCommonCompositionLocals(CompositionLocals.kt:150)
    	at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:114)
    	at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt$ProvideAndroidCompositionLocals$3.invoke(AndroidCompositionLocals.android.kt:113)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.ui.platform.AndroidCompositionLocals_androidKt.ProvideAndroidCompositionLocals(AndroidCompositionLocals.android.kt:106)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:162)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1$1$3.invoke(Wrapper.android.kt:161)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.CompositionLocalKt.CompositionLocalProvider(CompositionLocal.kt:215)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:161)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1$1.invoke(Wrapper.android.kt:144)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:107)
    	at androidx.compose.runtime.internal.ComposableLambdaImpl.invoke(ComposableLambda.jvm.kt:34)
    	at androidx.compose.runtime.ComposerKt.invokeComposable(Composer.kt:3332)
    	at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:2577)
    	at androidx.compose.runtime.ComposerImpl$doCompose$2$5.invoke(Composer.kt:2566)
    	at androidx.compose.runtime.SnapshotStateKt.observeDerivedStateRecalculations(SnapshotState.kt:540)
    	at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:2566)
    	at androidx.compose.runtime.ComposerImpl.composeContent$runtime_release(Composer.kt:2517)
    	at androidx.compose.runtime.CompositionImpl.composeContent(Composition.kt:477)
    	at androidx.compose.runtime.Recomposer.composeInitial$runtime_release(Recomposer.kt:727)
    	at androidx.compose.runtime.CompositionImpl.setContent(Composition.kt:433)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:144)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:135)
    	at androidx.compose.ui.platform.AndroidComposeView.setOnViewTreeOwnersAvailable(AndroidComposeView.android.kt:727)
    	at androidx.compose.ui.platform.WrappedComposition.setContent(Wrapper.android.kt:135)
    	at androidx.compose.ui.platform.WrappedComposition.onStateChanged(Wrapper.android.kt:187)
    	at androidx.lifecycle.LifecycleRegistry$ObserverWithState.dispatchEvent(LifecycleRegistry.java:354)
    	at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.java:196)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:142)
    	at androidx.compose.ui.platform.WrappedComposition$setContent$1.invoke(Wrapper.android.kt:135)
    	at androidx.compose.ui.platform.AndroidComposeView.onAttachedToWindow(AndroidComposeView.android.kt:814)
    	at android.view.View.dispatchAttachedToWindow(View.java:20479)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3489)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
    	at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
    	at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:44)
    	at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:360)
    	at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:431)
    	at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:141)
    	at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:714)
    	at com.android.tools.idea.rendering.RenderTask.lambda$inflate$7(RenderTask.java:870)
    	at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$2.run(RenderExecutor.kt:187)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
    	at java.base/java.lang.Thread.run(Thread.java:834)

  • 问题 #216398612Studio 在构建时冻结。

    Studio 在构建时冻结。不得不强制退出应用程序。在 AndroidStudio2020.3(Apple M1 预览版)中从未见过这种情况。由于我必须完成我的工作,目前已恢复为预览版。
    
    重现步骤:
    很难重现,因为它发生在我的项目中,而且我没有时间用其他东西进行测试。
    ------------------
    
    工作室构建:Android Studio Bumblebee | 2021.1.1 Build #AI-211.7628.21.2111.8092744
    Gradle 插件版本:7.0.4
    Gradle 版本:7.3
    Java 版本:JDK:11.0.11;虚拟机:OpenJDK 64 位服务器虚拟机;供应商:JetBrains sro
    操作系统:Mac OS X (12.1, aarch64)

嵌入式仿真器

  • 其他性能和稳定性改进。

导入/同步

  • 问题 #217589134启动 Bumblebee 时出现 IDE 错误:输出列表构建文件不适用于 IdeBuildTasksAndOutputInformationImp 中的输出类型 Apk

    When launching Android Studio Bumblebee:
    
    java.lang.Throwable: Output listing build file is not available for output type Apk in IdeBuildTasksAndOutputInformationImpl(assembleTaskName=assembleCmnFreeDebug, assembleTaskOutputListingFile=null, bundleTaskName=null, bundleTaskOutputListingFile=null, apkFromBundleTaskName=null, apkFromBundleTaskOutputListingFile=null) at com.android.tools.idea.gradle.util.GradleBuildOutputUtil.getOutputListingFile(GradleBuildOutputUtil.kt:134) at com.android.tools.idea.gradle.util.GradleBuildOutputUtil.getBuildOutputListingFile(GradleBuildOutputUtil.kt:154) at com.android.tools.idea.gradle.project.model.AndroidModuleModel.getApplicationIdUsingCache(AndroidModuleModel.java:606) at com.android.tools.idea.gradle.project.model.AndroidModuleModel.getApplicationId(AndroidModuleModel.java:272) at com.android.tools.idea.model.AndroidModuleInfo.getPackage(AndroidModuleInfo.java:110) at com.android.tools.idea.ddms.DevicePanel.getApplicationName(DevicePanel.java:238) at com.android.tools.idea.ddms.DevicePanel.access$000(DevicePanel.java:56) at com.android.tools.idea.ddms.DevicePanel$1.compute(DevicePanel.java:77) at com.android.tools.idea.ddms.DevicePanel$1.compute(DevicePanel.java:73) at com.intellij.openapi.util.NullableLazyValue.getValue(NullableLazyValue.java:36) at com.android.tools.idea.ddms.DevicePanel.getPreferredClient(DevicePanel.java:432) at com.android.tools.idea.ddms.DevicePanel.updateProcessComboBox(DevicePanel.java:383) at com.android.tools.idea.ddms.DevicePanel.updateDeviceCombo(DevicePanel.java:348) at com.android.tools.idea.ddms.DevicePanel.lambda$bridgeChanged$2(DevicePanel.java:266) at com.intellij.util.ui.EdtInvocationManager.invokeLaterIfNeeded(EdtInvocationManager.java:101) at com.intellij.util.ui.UIUtil.invokeLaterIfNeeded(UIUtil.java:2122) at com.android.tools.idea.ddms.DevicePanel.lambda$bridgeChanged$3(DevicePanel.java:264) at com.intellij.openapi.project.DumbServiceImpl.unsafeRunWhenSmart(DumbServiceImpl.java:276) at com.intellij.ide.startup.impl.StartupManagerImpl.lambda$runWhenProjectIsInitialized$10(StartupManagerImpl.java:485) at com.intellij.ide.startup.impl.StartupManagerImpl.runAfterOpened(StartupManagerImpl.java:503) at com.intellij.ide.startup.impl.StartupManagerImpl.runWhenProjectIsInitialized(StartupManagerImpl.java:484) at com.android.tools.idea.ddms.DevicePanel.bridgeChanged(DevicePanel.java:264) at com.android.ddmlib.AndroidDebugBridge.addDebugBridgeChangeListener(AndroidDebugBridge.java:648) at com.android.tools.idea.ddms.DevicePanel.<init>(DevicePanel.java:100) at com.android.tools.idea.ddms.DevicePanel.<init>(DevicePanel.java:82) at com.android.tools.idea.logcat.LogcatPanel.<init>(LogcatPanel.java:34) at com.android.tools.idea.logcat.AndroidLogcatToolWindowFactory.createToolWindowContent(AndroidLogcatToolWindowFactory.java:71) at com.intellij.openapi.wm.impl.ToolWindowImpl.createContentIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:525) at com.intellij.openapi.wm.impl.ToolWindowImpl.scheduleContentInitializationIfNeeded$intellij_platform_ide_impl(ToolWindowImpl.kt:504) at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.doShowWindow(ToolWindowManagerImpl.kt:1022) at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.showToolWindowImpl(ToolWindowManagerImpl.kt:968) at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow(ToolWindowManagerImpl.kt:668) at com.intellij.openapi.wm.impl.ToolWindowManagerImpl.activateToolWindow(ToolWindowManagerImpl.kt:635) at com.intellij.ide.actions.ActivateToolWindowAction.actionPerformed(ActivateToolWindowAction.java:122) at com.intellij.openapi.actionSystem.ex.ActionUtil.lambda$performActionDumbAware$5(ActionUtil.java:273) at com.intellij.util.SlowOperations.lambda$allowSlowOperations$0(SlowOperations.java:77) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:64) at com.intellij.util.SlowOperations.allowSlowOperations(SlowOperations.java:76) at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:273) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.lambda$actionPerformed$0(ActionMenuItem.java:310) at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:286) at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:77) at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:299) at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1967) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.lambda$fireActionPerformed$0(ActionMenuItem.java:110) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:95) at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:110) at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2308) at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405) at java.desktop/javax.swing.JToggleButton$ToggleButtonModel.setPressed(JToggleButton.java:401) at java.desktop/javax.swing.AbstractButton.doClick(AbstractButton.java:369) at java.desktop/com.apple.laf.ScreenMenuItemCheckbox.itemStateChanged(ScreenMenuItemCheckbox.java:198) at java.desktop/java.awt.CheckboxMenuItem.processItemEvent(CheckboxMenuItem.java:396) at java.desktop/java.awt.CheckboxMenuItem.processEvent(CheckboxMenuItem.java:364) at java.desktop/java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:375) at java.desktop/java.awt.MenuComponent.dispatchEvent(MenuComponent.java:363) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:781) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:727) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:751) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:749) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:748) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:969) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:839) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$8(IdeEventQueue.java:449) at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:808) at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448) at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:787) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
    
    Android Studio Bumblebee | 2021.1.1 Build #AI-211.7628.21.2111.8092744, built on January 19, 2022 Runtime version: 11.0.11+0-b60-7590822 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 12.2 GC: G1 Young Generation, G1 Old Generation Memory: 1920M Cores: 8 Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false Non-Bundled Plugins: com.chimerapps.proguard-retrace (1.0.1), com.intellij.marketplace (211.7628.36), com.thoughtworks.gauge (211.6693.111), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), com.google.mad-scorecard (1.2), com.squareup.sqldelight (1.5.3)

智能

  • 问题 #216364005:从 Mac OS X 启动到 Monterey Dock 时未获取环境变量

    详细描述问题:
    
    当我从 Mac OS X 扩展坞启动 Android Studio 时,该程序未在我的环境变量中获取源。此更改发生在我今天升级到 Bumblebee 之后。北极狐以前在工作。
    
    重现步骤:
    1. 在 bash_profile、bashrc 等中配置环境变量。重新启动。验证变量是否存在于 CLI 上。
    2. 从 Mac OS X Dock 启动 Android Studio
    3. 在 Gradle 的某处打印环境 System.getenv().toString()
    4. 请注意,该变量在 Android Studio 中不可见,仅在 CLI 上可见。该变量将显示在 Android Studio 的 CLI 中,因为它独立地获取 shell 配置。
    
    Android Studio Bumblebee | 2021.1.1
    Build #AI-211.7628.21.2111.8092744,于 2022 年 1 月 18 日构建
    运行时版本:11.0.11+0-b60-7590822 x86_64
    VM:JetBrains sro 的 OpenJDK 64 位服务器 VM
    macOS 12.1
    GC:G1 年轻一代, G1 老一代
    内存:6144M
    内核:16
    注册表:external.system.auto.import.disabled=true, ide.instant.shutdown=false
    非捆绑插件:com.thoughtworks.gauge (211.6693.111)、org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)、org.intellij.plugins.markdown (211.7142.37)
    
    版本Gradle 插件版本:7.0.3
    Gradle 版本:7.3.2
    Java 版本:Azul Zulu 11.0.13
    操作系统:Mac OS X Monterey

Jetpack (androidx) > 导航

工具窗口

  • 问题 #216194180:无法运行 Android 设备管理器

    内部版本:AI-211.7628.21.2111.8092744、202201190556、
    
    AI-211.7628.21.2111.8092744、JRE 11.0.11+0-b60-7772763x64 JetBrains sro、OS Mac OS X(aarch64) v12.1、4.x、0256.0256 2560.0x1440.0; 视网膜
    
    AS:大黄蜂 | 2021.1.1;Kotlin 插件:211-1.6.10-release-923-AS7442.40;Android Gradle Plugin:(未找到插件信息);Gradle:(未找到gradle版本信息);Gradle JDK:版本 11.0.11;NDK:来自local.properties:(未指定),最新来自SDK:(未找到);LLDB:未找到固定版本 3.1,来自 SDK 的最新版本:(未找到包);CMake:来自 local.properties:(未指定),最新来自 SDK:(未找到),来自 PATH:(未找到)来源:user_sentiment_feedback
    
    重要提示:请阅读https://developer.android.com/studio/report-bugs .html 仔细并提供所有必需的信息。
    
    我刚刚安装了新的 AS:Bumblebee | 2021.1.1 到配备 M1 CPU 的新 MacBook。
    第二天,我无法运行 Android 设备管理器来创建新的模拟器:
    当我按下设备管理器图标时,什么也没有发生。

  • 问题 #217765670:BumbleBee 中的网络检查器未以可读格式显示 api 响应

    详细描述问题:
    
    BumbleBee 中的网络检查器不会以可读格式显示检查的响应。在 Bumblebee 更新之前,这很好。即使是补丁 1 更新也有这个问题
    
    重现步骤:
    1. 运行任何使用远程源加载数据的应用程序。
    2. 在App Inspection 中附上流程。
    3. 拦截任何 API 响应。
    
    
    工作室构建:
    Android Studio 大黄蜂 | 2021.1.1 Patch 1
    Build #AI-211.7628.21.2111.8139111,于 2022 年 2 月 2 日构建
    运行时版本:11.0.11+0-b60-7590822 x86_64
    VM:OpenJDK 64-Bit Server VM by JetBrains sro
    macOS 10.15.7
    GC :G1 年轻代,G1 老一代
    内存:4096M
    内核:12
    注册表:external.system.auto.import.disabled=true, ide.instant.shutdown=false
    非捆绑插件:mobi.hsz.idea.gitignore (4.1. 0), Docker (211.7442.9), PythonCore (211.7628.24), com.thoughtworks.gauge (211.6693.111), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), com .developerphil.adbidea (1.6.4)、il.co.galex.namethatcolor (1.7.4)、org.intellij.plugins.markdown (211.7142.37)
    
    Gradle 插件版本:4.1.2
    Gradle 版本:6.2
    Java 版本:运行时版本:11.0.11+0-b60-7590822 x86_64
    VM:JetBrains sro 的 OpenJDK 64 位服务器 VM
    操作系统:macOS 10.15.7

  移动开发 最新文章
Vue3装载axios和element-ui
android adb cmd
【xcode】Xcode常用快捷键与技巧
Android开发中的线程池使用
Java 和 Android 的 Base64
Android 测试文字编码格式
微信小程序支付
安卓权限记录
知乎之自动养号
【Android Jetpack】DataStore
上一篇文章      下一篇文章      查看所有文章
加:2022-03-17 22:19:09  更:2022-03-17 22:20:59 
 
开发: C++知识库 Java知识库 JavaScript Python PHP知识库 人工智能 区块链 大数据 移动开发 嵌入式 开发工具 数据结构与算法 开发测试 游戏开发 网络协议 系统运维
教程: HTML教程 CSS教程 JavaScript教程 Go语言教程 JQuery教程 VUE教程 VUE3教程 Bootstrap教程 SQL数据库教程 C语言教程 C++教程 Java教程 Python教程 Python3教程 C#教程
数码: 电脑 笔记本 显卡 显示器 固态硬盘 硬盘 耳机 手机 iphone vivo oppo 小米 华为 单反 装机 图拉丁

360图书馆 购物 三丰科技 阅读网 日历 万年历 2024年11日历 -2024/11/24 18:35:48-

图片自动播放器
↓图片自动播放器↓
TxT小说阅读器
↓语音阅读,小说下载,古典文学↓
一键清除垃圾
↓轻轻一点,清除系统垃圾↓
图片批量下载器
↓批量下载图片,美女图库↓
  网站联系: qq:121756557 email:121756557@qq.com  IT数码