Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Could not resolve all dependencies for configuration ':app debug Runtime Classpath'

I am upgrade my android project gradle 5.4.1-all to 6.5-bin, and upgrade build tools 4.0.0 to 4.1.0, then i am get an error like this

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.
like image 483
Ven Ren Avatar asked Oct 27 '20 06:10

Ven Ren


1 Answers

upgrading build tools from 4.0.0 to 4.1.0 doesn't sound right to me--

To set the buildToolsVersion (e.g. to '30.0.5') in your build.gradle file, I suggest going to Tools > SDK Manager, then going to the "SDK Tools" tab; here I find the default view misleading, because it shows a certain version of the "Android SDK Platform-Tools" (the one you might have upgraded to) - but then when you tick the option "Show Package Details", you see another version actually installed. And so I recommend setting the buildToolsVersion to this latter installed version.

like image 174
Razvan_TK9692 Avatar answered Sep 29 '22 09:09

Razvan_TK9692