已解决:Could not create task ‘:app:minifyDebugWithR8‘.. Cannot query the value of this provider

问题:

解决办法:

1.打开你项目的build.gradle文件,查看dependencies中的版本号;

2.在Android studio中双击shift,在弹框中输入sdk manager,回车;

3. 下载和你的build.gradle中的版本号相同的sdk;

4.重新build项目,即可通过!

参考:https://stackoverflow.com/questions/64459937/could-not-create-task-appminifyreleasewithr8-cannot-query-the-value-of-this

猜你喜欢

转载自blog.csdn.net/THMAIL/article/details/112246973