Could not download aapt2-osx.jar












0















I have just started with the android studio. I am facing an error




"Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




After adding this line android.enableAapt2=false I am able to build the project but not able to run it on my phone(OnePlus 5).



I have also tried this "Could not find com.android.tools.build:aapt2:3.2.0" but it doesn't work.



Please Help...










share|improve this question

























  • I have tried it doesn't work

    – Soumil Kanwal
    Nov 16 '18 at 6:01











  • try my answer here: stackoverflow.com/a/51151050/8034839

    – shizhen
    Nov 16 '18 at 6:23
















0















I have just started with the android studio. I am facing an error




"Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




After adding this line android.enableAapt2=false I am able to build the project but not able to run it on my phone(OnePlus 5).



I have also tried this "Could not find com.android.tools.build:aapt2:3.2.0" but it doesn't work.



Please Help...










share|improve this question

























  • I have tried it doesn't work

    – Soumil Kanwal
    Nov 16 '18 at 6:01











  • try my answer here: stackoverflow.com/a/51151050/8034839

    – shizhen
    Nov 16 '18 at 6:23














0












0








0








I have just started with the android studio. I am facing an error




"Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




After adding this line android.enableAapt2=false I am able to build the project but not able to run it on my phone(OnePlus 5).



I have also tried this "Could not find com.android.tools.build:aapt2:3.2.0" but it doesn't work.



Please Help...










share|improve this question
















I have just started with the android studio. I am facing an error




"Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




After adding this line android.enableAapt2=false I am able to build the project but not able to run it on my phone(OnePlus 5).



I have also tried this "Could not find com.android.tools.build:aapt2:3.2.0" but it doesn't work.



Please Help...







android android-studio






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 16 '18 at 6:23









Faysal Ahmed

4,29651534




4,29651534










asked Nov 16 '18 at 5:55









Soumil KanwalSoumil Kanwal

32




32













  • I have tried it doesn't work

    – Soumil Kanwal
    Nov 16 '18 at 6:01











  • try my answer here: stackoverflow.com/a/51151050/8034839

    – shizhen
    Nov 16 '18 at 6:23



















  • I have tried it doesn't work

    – Soumil Kanwal
    Nov 16 '18 at 6:01











  • try my answer here: stackoverflow.com/a/51151050/8034839

    – shizhen
    Nov 16 '18 at 6:23

















I have tried it doesn't work

– Soumil Kanwal
Nov 16 '18 at 6:01





I have tried it doesn't work

– Soumil Kanwal
Nov 16 '18 at 6:01













try my answer here: stackoverflow.com/a/51151050/8034839

– shizhen
Nov 16 '18 at 6:23





try my answer here: stackoverflow.com/a/51151050/8034839

– shizhen
Nov 16 '18 at 6:23












2 Answers
2






active

oldest

votes


















1














You are running offline mode. That's why this issue is arised. You need to disable offline mode from Gradle in Android studio.



In Android Studio you can make Gradle disable by removing check mark of offline mode this option:



Settings -> Build, Execution, Deployment -> Build tools -> Gradle



enter image description here



Hope this will help.






share|improve this answer































    1















    "Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




    This means your gradle is working in offline mode. You need to uncheck offline mode and try to put google() repo as the first one for your build.gradle. See https://stackoverflow.com/a/51151050/8034839






    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%2f53332201%2fcould-not-download-aapt2-osx-jar%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      You are running offline mode. That's why this issue is arised. You need to disable offline mode from Gradle in Android studio.



      In Android Studio you can make Gradle disable by removing check mark of offline mode this option:



      Settings -> Build, Execution, Deployment -> Build tools -> Gradle



      enter image description here



      Hope this will help.






      share|improve this answer




























        1














        You are running offline mode. That's why this issue is arised. You need to disable offline mode from Gradle in Android studio.



        In Android Studio you can make Gradle disable by removing check mark of offline mode this option:



        Settings -> Build, Execution, Deployment -> Build tools -> Gradle



        enter image description here



        Hope this will help.






        share|improve this answer


























          1












          1








          1







          You are running offline mode. That's why this issue is arised. You need to disable offline mode from Gradle in Android studio.



          In Android Studio you can make Gradle disable by removing check mark of offline mode this option:



          Settings -> Build, Execution, Deployment -> Build tools -> Gradle



          enter image description here



          Hope this will help.






          share|improve this answer













          You are running offline mode. That's why this issue is arised. You need to disable offline mode from Gradle in Android studio.



          In Android Studio you can make Gradle disable by removing check mark of offline mode this option:



          Settings -> Build, Execution, Deployment -> Build tools -> Gradle



          enter image description here



          Hope this will help.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 16 '18 at 6:17









          Faysal AhmedFaysal Ahmed

          4,29651534




          4,29651534

























              1















              "Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




              This means your gradle is working in offline mode. You need to uncheck offline mode and try to put google() repo as the first one for your build.gradle. See https://stackoverflow.com/a/51151050/8034839






              share|improve this answer




























                1















                "Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




                This means your gradle is working in offline mode. You need to uncheck offline mode and try to put google() repo as the first one for your build.gradle. See https://stackoverflow.com/a/51151050/8034839






                share|improve this answer


























                  1












                  1








                  1








                  "Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




                  This means your gradle is working in offline mode. You need to uncheck offline mode and try to put google() repo as the first one for your build.gradle. See https://stackoverflow.com/a/51151050/8034839






                  share|improve this answer














                  "Could not download aapt2-osx.jar (com.android.tools.build:aapt2:3.2.1-4818971): No cached version available for offline mode"




                  This means your gradle is working in offline mode. You need to uncheck offline mode and try to put google() repo as the first one for your build.gradle. See https://stackoverflow.com/a/51151050/8034839







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 16 '18 at 6:25









                  shizhenshizhen

                  3,84541336




                  3,84541336






























                      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%2f53332201%2fcould-not-download-aapt2-osx-jar%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

                      Xamarin.iOS Cant Deploy on Iphone

                      Glorious Revolution

                      Dulmage-Mendelsohn matrix decomposition in Python