{"id":768,"date":"2023-07-25T05:59:00","date_gmt":"2023-07-25T05:59:00","guid":{"rendered":"https:\/\/www.devopssupport.in\/blog\/?p=768"},"modified":"2023-07-27T06:11:00","modified_gmt":"2023-07-27T06:11:00","slug":"error-unable-to-load-class-com-android-ide-common-repository-gradleversion-in-android-studio","status":"publish","type":"post","link":"https:\/\/www.devopssupport.in\/blog\/error-unable-to-load-class-com-android-ide-common-repository-gradleversion-in-android-studio\/","title":{"rendered":"Error &#8216;Unable to load class &#8216;com.android.ide.common.repository.GradleVersion&#8217;.&#8217; in Android Studio"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"363\" src=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-1024x363.png\" alt=\"\" class=\"wp-image-769\" srcset=\"https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-1024x363.png 1024w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-300x106.png 300w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-768x272.png 768w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-1536x544.png 1536w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18-850x301.png 850w, https:\/\/www.devopssupport.in\/blog\/wp-content\/uploads\/2023\/07\/image-18.png 1877w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Step 1: From the left panel in your IDE, choose the <code>android<\/code> folder (also known as the &#8220;Project&#8221; view). <\/p>\n\n\n\n<p>Step 2: Look for the <code>build.gradle<\/code> file (the one inside the <code>app<\/code> module) then double-click it to start editing it. <\/p>\n\n\n\n<p>Step 3: Inside the <code>build.gradle<\/code> file, locate the <code>classpath<\/code> line that states:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>classpath 'com.android.tools.build:gradle:3.2.1'\r\n<\/code><\/pre>\n\n\n\n<p>Change the version to the desired version of the Android Gradle Plugin that is compatible with your Android Studio. For example, if you want to update it to version 3.3.0, modify it to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>classpath 'com.android.tools.build:gradle:3.3.0'\r\n<\/code><\/pre>\n\n\n\n<p>Step 4: After finishing Steps 1 to 3, go to the <code>gradle<\/code> folder in the root directory of your project. <\/p>\n\n\n\n<p>5: Double-click on the <code>wrapper<\/code> subfolder. <\/p>\n\n\n\n<p>Step 6: Click on the <code>gradle-wrapper.properties<\/code> file to start editing it. <\/p>\n\n\n\n<p>Step 7: In the <code>gradle-wrapper.properties<\/code> file, make sure that your Gradle version is compatible with the Android Gradle Plugin version you specified in Step 3. You can do this by checking and updating the <code>distributionUrl<\/code> line to the desired version.<\/p>\n\n\n\n<p> For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>distributionUrl=https\\:\/\/services.gradle.org\/distributions\/gradle-4.10.2-all.zip\r\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: From the left panel in your IDE, choose the android folder (also known as the &#8220;Project&#8221; view). Step 2: Look for the build.gradle file (the&#8230; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-768","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/768","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/comments?post=768"}],"version-history":[{"count":1,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/768\/revisions"}],"predecessor-version":[{"id":770,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/posts\/768\/revisions\/770"}],"wp:attachment":[{"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/media?parent=768"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/categories?post=768"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopssupport.in\/blog\/wp-json\/wp\/v2\/tags?post=768"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}