记一次新建Android工程报错: Could not download appcompat.aar (androidx.appcompat:appcompat:1.0.2)
16lz
2021-12-04
今天新建项目报错,报错日志如下:
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选项,重新编译即可。
更多相关文章
- Android(安卓)Studio之RenderingException错误
- build.gradle文件介绍,gradle版本对应
- 建本地 repo server
- Android(安卓)SDK Manager无法获取其他版本的问题
- Android临时数据缓存方法
- Android(安卓)Studio Error:Execution failed 持续更新...
- 修改 android版本 签名问题
- 修改android版本号
- Android程序结构分析