Fix for "Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0"

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
Hello friends today I am going to solve an another gradal warning in Android Studio deprecated gradal features were used in this build making it incompatible with gradel 9.0 this warning could occur because of the usage of deprecated gradel scripts or plugins in your Project's build file I have soled the same warning caused by the J Center deprecation in my earlier video I'll give the link in the description box for your reference now I have received the same warning again in my another project so let's find out the root cause of this warning and solve the issue accordingly Hello friends welcome back to IA Tech Solutions here it says you can use warning mode all to show the individual deprecation warnings Okay click on this gradal documentation link to check the usage of the warning mode command see this is the warning mode option with values all fail none and summary summary is the default mode and setting the mode to all gives you the detailed log warnings Okay click on this gradal properties to check the usage of this warning mode in our projects gradel file come down see this is the usage of this warning mode property copy this go to the project open graded. properties file add this property at the end and set the value to all now sync the gradal files see the warning is shown in detail in apps build. gradel file at line 16 the base plug-in convention type has been deprecated this is scheduled to be removed in gradel 9.0 okay let's go to that line This is the line number 16 in build. gradel archives base name equal to translator hyphen version code this convention property is used to name the release build files with version codes so this base name property is deprecated in gradel 9.0 okay to check the new base convention go to this user guide page the conventions are replaced by the base configuration block backed by base plug-in extension the world convention object defines the dis directory name libraries directory name and archives base name properties with simple getter and Setter methods those methods are available in the extension only to maintain back word compatibility so this archive base name convention should not be used in default config directly it should be within the base configuration block so copy this paste below default config block and I'm copying the build name convention for my project okay remove this here now sync the gradal files oh it created an error could not get unknown property version code for extension base okay here accessing this version code which is a default config property is not possible in the base block so we need to change this convention to default config do verion code okay now sync the gradal files once again rebuild the project yes see the deprecated gradel feature warning is gone now let's change the version code and try creating the release build yes it created the release build with updated version code means the new base plug-in convention is perfectly fine so this way by adding warning mode property in gradel do property we can find the root cause of this warning then by following the gradel user guide for new conventions we can solve any deprecated gradel warnings hope you could also solve this Warning by watching this video If this video is helpful for you please comment like the video and subscribe to IA Tech Solutions thank you
Info
Channel: iRekha Tech Solutions
Views: 1,567
Rating: undefined out of 5
Keywords:
Id: P_rVFe4WBDo
Channel Id: undefined
Length: 4min 20sec (260 seconds)
Published: Mon Apr 15 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.