记一次新建Android工程报错: Could not download appcompat.aar (androidx.appcompat:appcompat:1.0.2)
今天新建项目报错,报错日志如下:ERROR: Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not download appcompat.aar (androidx.appcompat:appcompat:1.0.2): No cached version available for offline m.
·
今天新建项目报错,报错日志如下:
ERROR: Unable to resolve dependency for ‘:app@debug/compileClasspath’: Could not download appcompat.aar (androidx.appcompat:appcompat:1.0.2): No cached version available for offline mode
Google翻译后:错误:无法解析’:app @ debug / compileClasspath’的依赖项:无法下载appcompat.aar(androidx.appcompat:appcompat:1.0.2):无缓存版本可用于离线模式
在stackoverflow找到解决方法
Android Studio版本:3.5.3
本机解决办法:File-Other Settings-Settings for New Projects-Build-Build Tools-Grade-取消Offline work选项,重新编译即可。
更多推荐
已为社区贡献1条内容
所有评论(0)