gradle 复合构建问题
Issue with gradle composite build
我已将我的 kotlin 多平台项目从 android gradle 插件 4.2.1 和 kotlin 1.4.32 更新到 android gradle 4.2.1 和 kotlin 1.5 .10.
我还将 gradle 插件从 6.7.1 更新到 6.8.3。但是在这次更新之后 Android Studio 4.2.1 在 gralde sync 期间出现以下错误。
我搜索了这个错误,但能够找到关于 AnalyticsService
的更多详细信息
* Exception is:
com.intellij.openapi.externalSystem.model.ExternalSystemException: Failed to create service 'com.android.build.gradle.internal.profile.AnalyticsService_875fdcc1-2c6d-43e7-babe-40606c3a66e6'.
Could not create an instance of type com.android.build.gradle.internal.profile.AnalyticsService.
Cannot query the value of this property because it has no value available.
at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:259)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:127)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:77)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionRunningListener.runAction(AbstractClientProvidedBuildActionRunner.java:134)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionRunningListener.buildFinished(AbstractClientProvidedBuildActionRunner.java:119)
at jdk.internal.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
任何小指针都会有所帮助。
我已经检查了上面提到的 gradle Android Studio 版本 4.2.2 的复合构建问题,并且此问题已得到修复。
我已将我的 kotlin 多平台项目从 android gradle 插件 4.2.1 和 kotlin 1.4.32 更新到 android gradle 4.2.1 和 kotlin 1.5 .10. 我还将 gradle 插件从 6.7.1 更新到 6.8.3。但是在这次更新之后 Android Studio 4.2.1 在 gralde sync 期间出现以下错误。
我搜索了这个错误,但能够找到关于 AnalyticsService
* Exception is:
com.intellij.openapi.externalSystem.model.ExternalSystemException: Failed to create service 'com.android.build.gradle.internal.profile.AnalyticsService_875fdcc1-2c6d-43e7-babe-40606c3a66e6'.
Could not create an instance of type com.android.build.gradle.internal.profile.AnalyticsService.
Cannot query the value of this property because it has no value available.
at org.jetbrains.plugins.gradle.model.ProjectImportAction.addBuildModels(ProjectImportAction.java:259)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:127)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:77)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionRunningListener.runAction(AbstractClientProvidedBuildActionRunner.java:134)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionRunningListener.buildFinished(AbstractClientProvidedBuildActionRunner.java:119)
at jdk.internal.reflect.GeneratedMethodAccessor336.invoke(Unknown Source)
任何小指针都会有所帮助。
我已经检查了上面提到的 gradle Android Studio 版本 4.2.2 的复合构建问题,并且此问题已得到修复。