[英]No cached version of com.android.tools.build:aapt2:4.0.0-alpha09-6051327 available for offline mode. android 4.0 canary 9
Could not isolate value com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@2e602d09 of type AarResourcesCompilerTransform.Parameters Could not resolve all files for configuration ':app:_internal_aapt2_binary'.
无法隔离 AarResourcesCompilerTransform.Parameters 类型的值 com.android.build.gradle.internal.dependency.AarResourcesCompilerTransform$Parameters_Decorated@2e602d09 无法解析所有配置文件 ':app:_internal_aapt2_binary'。 Could not resolve com.android.tools.build:aapt2:4.0.0-alpha09-6051327.
无法解析 com.android.tools.build:aapt2:4.0.0-alpha09-6051327。 Required by: project :app No cached version of com.android.tools.build:aapt2:4.0.0-alpha09-6051327 available for offline mode.
需要:项目:app 没有缓存版本的 com.android.tools.build:aapt2:4.0.0-alpha09-6051327 可用于离线模式。 No cached version of com.android.tools.build:aapt2:4.0.0-alpha09-6051327 available for offline mode.
没有缓存版本的 com.android.tools.build:aapt2:4.0.0-alpha09-6051327 可用于离线模式。
This is as a result of Gradle trying to use some network resources but since you have offline mode
enabled, it uses only the artifacts that it has cached locally.这是 Gradle 尝试使用某些网络资源的结果,但由于您启用了
offline mode
,因此它仅使用它在本地缓存的工件。 In AS Canary 9, with your computer connected to the internet , try disabling the Gradle offline mode
using the button shown below, after which you can clean and rebuild the project.在 AS Canary 9 中,将您的计算机连接到互联网,尝试使用下面显示的按钮禁用 Gradle
offline mode
,之后您可以清理和重建项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.