How to fix "Could not resolve all files for configuration ':classpath'".

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello developers today I am going to show you a simple solution for the error a problem occurred configuring root project could not resolve all files for configuration class path could not resolve build gradel 7.4.1 no cast version of gradel 7.4.1 available for offline mode so here Android Studio suggested a possible solution disable offline mode and rerun the build let's first try this solution click on this same error is coming means the suggested solution is not working okay first let's check where is this gradel plug-in version defined in Android View mode go to gradel scripts build. gradel file is not available here check in the project here it is open this projects build. gradel file the class path gradel 7.4.1 is defined here so to resolve this configuration class path error we need to update this AGP version to latest go to settings project structure under Project Check gradal and AGP versions here gradel version we can change but AGP version we cannot change if you know the latest AGP version then you can update manually here but I recommend using AGP Upgrade Assistant go to tools select AGP Upgrade Assistant this tool suggests all the recommended changes see it says upgrade gradel version to 8.6 and AGP version from 7.4.1 to 8.4.0 Okay now click on run selected steps yes sync succeeded and these are the changes taken care by Upgrade Assistant see the AGP version upgraded to 8.4.0 okay now clean the project rebuild the project oh there is an error the specified Android SDK build tools version 31.0 is ignored as it is below the minimum supported version 34.0 for Android gradel plugin 8.4.0 this error occurred after updating the AGP version to 8.4.0 the solution is very simple I have already solved this in one of my videos the solution is remove build tools version 31.0 .0 from your build. gradel file okay open modules build. gradel file remove this build tools version property sync the gradel files and remember always Target the latest SDK version for your app I am changing 31 to 33 and compile SDK version also now sync the gradel files once again okay there is an error in this file it looks like uh you just edited the target SDK version from 31 to 33 in the editor okay to solve this just launch the Android SDK Upgrade Assistant this is just to understand the changes included in the API level 33 so close this window error is gone and there are some deprecated warnings resolving them okay change the compile SDK version to compile SDK and compile SDK repeat Ed here removing it okay now sync the gradel files build the project see there are no errors so for any gradal and AGP version related errors just use AGP Upgrade Assistant tool in Android Studio hope you could also solve this error at your end by watching this video if yes please comment like the video and subscribe to I Tech Solutions thank you
Info
Channel: iRekha Tech Solutions
Views: 92
Rating: undefined out of 5
Keywords:
Id: kgn2xeAWWa4
Channel Id: undefined
Length: 3min 59sec (239 seconds)
Published: Fri May 10 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.