Gradle sync issue in Android Studio 3.2.1












0















I have updated my Android studio to 3.2.1 since then am getting error as below




Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.android.support:appcompat-v7:28.0.0.




hence unable to build my application



I have unchecked offline too



my dependencies in gradle file



dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


kindly suggest a solution for this



Regards.
Nagendra










share|improve this question

























  • i have open network internet access

    – nagendra
    Nov 26 '18 at 8:17
















0















I have updated my Android studio to 3.2.1 since then am getting error as below




Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.android.support:appcompat-v7:28.0.0.




hence unable to build my application



I have unchecked offline too



my dependencies in gradle file



dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


kindly suggest a solution for this



Regards.
Nagendra










share|improve this question

























  • i have open network internet access

    – nagendra
    Nov 26 '18 at 8:17














0












0








0








I have updated my Android studio to 3.2.1 since then am getting error as below




Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.android.support:appcompat-v7:28.0.0.




hence unable to build my application



I have unchecked offline too



my dependencies in gradle file



dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


kindly suggest a solution for this



Regards.
Nagendra










share|improve this question
















I have updated my Android studio to 3.2.1 since then am getting error as below




Unable to resolve dependency for ':app@debug/compileClasspath': Could
not resolve com.android.support:appcompat-v7:28.0.0.




hence unable to build my application



I have unchecked offline too



my dependencies in gradle file



dependencies {

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}


kindly suggest a solution for this



Regards.
Nagendra







android-studio android-gradle build.gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 '18 at 15:31







nagendra

















asked Nov 26 '18 at 8:17









nagendranagendra

831112




831112













  • i have open network internet access

    – nagendra
    Nov 26 '18 at 8:17



















  • i have open network internet access

    – nagendra
    Nov 26 '18 at 8:17

















i have open network internet access

– nagendra
Nov 26 '18 at 8:17





i have open network internet access

– nagendra
Nov 26 '18 at 8:17












4 Answers
4






active

oldest

votes


















0














I think you are using old version of build tool in project level build.gradle.



Try



classpath 'com.android.tools.build:gradle:3.2.1'





share|improve this answer































    0














    Update your Android Gradle plugin



    1- Upade the classpath in top-level build.gradle to:



    buildscript {
    ....
    dependencies {
    classpath 'com.android.tools.build:gradle:3.2.1'
    }
    }


    2- Update the Gradle version to 4.6 in the gradle-wrapper.properties file by changing the distributionUrl to:



    ...
    distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip
    ...


    3- Go to ReBuild Project






    share|improve this answer































      0














      classpath 'com.android.tools.build:gradle:3.2.1'


      add this to the dependencies of buildscript. then Sync the project.






      share|improve this answer































        0














        Thanks for the response,



        Isuue was with proxy blocking the downloads,i have commented the proxy in gradle.properties then its started working, i was trying in the office network.



        Regards.
        Nagendra






        share|improve this answer
























          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53477019%2fgradle-sync-issue-in-android-studio-3-2-1%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          4 Answers
          4






          active

          oldest

          votes








          4 Answers
          4






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I think you are using old version of build tool in project level build.gradle.



          Try



          classpath 'com.android.tools.build:gradle:3.2.1'





          share|improve this answer




























            0














            I think you are using old version of build tool in project level build.gradle.



            Try



            classpath 'com.android.tools.build:gradle:3.2.1'





            share|improve this answer


























              0












              0








              0







              I think you are using old version of build tool in project level build.gradle.



              Try



              classpath 'com.android.tools.build:gradle:3.2.1'





              share|improve this answer













              I think you are using old version of build tool in project level build.gradle.



              Try



              classpath 'com.android.tools.build:gradle:3.2.1'






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Nov 26 '18 at 9:11









              Shrishti GuptaShrishti Gupta

              6613




              6613

























                  0














                  Update your Android Gradle plugin



                  1- Upade the classpath in top-level build.gradle to:



                  buildscript {
                  ....
                  dependencies {
                  classpath 'com.android.tools.build:gradle:3.2.1'
                  }
                  }


                  2- Update the Gradle version to 4.6 in the gradle-wrapper.properties file by changing the distributionUrl to:



                  ...
                  distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip
                  ...


                  3- Go to ReBuild Project






                  share|improve this answer




























                    0














                    Update your Android Gradle plugin



                    1- Upade the classpath in top-level build.gradle to:



                    buildscript {
                    ....
                    dependencies {
                    classpath 'com.android.tools.build:gradle:3.2.1'
                    }
                    }


                    2- Update the Gradle version to 4.6 in the gradle-wrapper.properties file by changing the distributionUrl to:



                    ...
                    distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip
                    ...


                    3- Go to ReBuild Project






                    share|improve this answer


























                      0












                      0








                      0







                      Update your Android Gradle plugin



                      1- Upade the classpath in top-level build.gradle to:



                      buildscript {
                      ....
                      dependencies {
                      classpath 'com.android.tools.build:gradle:3.2.1'
                      }
                      }


                      2- Update the Gradle version to 4.6 in the gradle-wrapper.properties file by changing the distributionUrl to:



                      ...
                      distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip
                      ...


                      3- Go to ReBuild Project






                      share|improve this answer













                      Update your Android Gradle plugin



                      1- Upade the classpath in top-level build.gradle to:



                      buildscript {
                      ....
                      dependencies {
                      classpath 'com.android.tools.build:gradle:3.2.1'
                      }
                      }


                      2- Update the Gradle version to 4.6 in the gradle-wrapper.properties file by changing the distributionUrl to:



                      ...
                      distributionUrl = https://services.gradle.org/distributions/gradle-4.6-all.zip
                      ...


                      3- Go to ReBuild Project







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Nov 26 '18 at 9:21









                      Abed MuradAbed Murad

                      64




                      64























                          0














                          classpath 'com.android.tools.build:gradle:3.2.1'


                          add this to the dependencies of buildscript. then Sync the project.






                          share|improve this answer




























                            0














                            classpath 'com.android.tools.build:gradle:3.2.1'


                            add this to the dependencies of buildscript. then Sync the project.






                            share|improve this answer


























                              0












                              0








                              0







                              classpath 'com.android.tools.build:gradle:3.2.1'


                              add this to the dependencies of buildscript. then Sync the project.






                              share|improve this answer













                              classpath 'com.android.tools.build:gradle:3.2.1'


                              add this to the dependencies of buildscript. then Sync the project.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Nov 26 '18 at 14:51









                              vimukthivimukthi

                              20329




                              20329























                                  0














                                  Thanks for the response,



                                  Isuue was with proxy blocking the downloads,i have commented the proxy in gradle.properties then its started working, i was trying in the office network.



                                  Regards.
                                  Nagendra






                                  share|improve this answer




























                                    0














                                    Thanks for the response,



                                    Isuue was with proxy blocking the downloads,i have commented the proxy in gradle.properties then its started working, i was trying in the office network.



                                    Regards.
                                    Nagendra






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      Thanks for the response,



                                      Isuue was with proxy blocking the downloads,i have commented the proxy in gradle.properties then its started working, i was trying in the office network.



                                      Regards.
                                      Nagendra






                                      share|improve this answer













                                      Thanks for the response,



                                      Isuue was with proxy blocking the downloads,i have commented the proxy in gradle.properties then its started working, i was trying in the office network.



                                      Regards.
                                      Nagendra







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Nov 27 '18 at 15:37









                                      nagendranagendra

                                      831112




                                      831112






























                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Stack Overflow!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53477019%2fgradle-sync-issue-in-android-studio-3-2-1%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          Wiesbaden

                                          Marschland

                                          Dieringhausen