使用AS创建Activity的时候,出现
Could not resolve all dependencies for configuration ‘:publisherTmOffDebugCompileClasspath’.
Could not determine artifacts for com.android.support:support-fragment:28.0.0
这样的报错信息
如图
简单翻译
无法解决配置的所有依赖项’:publisherTmOffDebugCompileClasspath’。
不能构建com.android.support:support-fragment:28.0.0,没有离线状态可用的缓存版本
经检查,在整个项目的dependencies里面,跟之前比有
implementation ‘com.android.support:appcompat-v7:28.0.0’
implementation ‘com.android.support.constraint:constraint-layout:1.1.0’
这样的依赖,如图
把多出来的依赖删掉,然后Sync一下gradle文件,问题就可以解决了
具体原因有待学习
版权声明:本文为qq_35008279原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。