- Could not resolve all dependenci
- Could not resolve all dependenci
- Could not resolve all dependenci
- Could not resolve all dependenci
- Could not resolve all dependenci
- Could not resolve all dependenci
- gradle could not resolve all dep
- Error:Could not resolve all file
- AndroidStudio 彻底关闭http网络代理方法( Co
- 【Android】安卓运行问题
报错
Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.
Could not create task ':app:minifyReleaseWithR8'.
Cannot query the value of this provider because it has no value available
这是因为SDK版本和buildToolsVersion不一致导致的
只需将buildToolsVersion版本改成本机已装SDK版本即可, 或者不改动代码 下载一个与之对应的SDK版本
解决
方式一
- 打开
Project Structure
如图

-
Compile Sdk Version
与Build Tools Version
版本设置一致 如图

方式二
- 工程中打开
build.gradle
文件--> 添加修改compileSdkVersion
、buildToolsVersion
一致--> 点击小老鼠重新Build 如下图
截屏2022-03-24 上午11.08.42.png
文章持续更新中、希望对各位有所帮助、有问题可留言 大家共同学习.
网友评论