Could not download aapt2-osx.jar
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
add a comment |
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
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
add a comment |
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
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
android android-studio
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
add a comment |
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
add a comment |
2 Answers
2
active
oldest
votes
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
Hope this will help.
add a comment |
"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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
Hope this will help.
add a comment |
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
Hope this will help.
add a comment |
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
Hope this will help.
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
Hope this will help.
answered Nov 16 '18 at 6:17
Faysal AhmedFaysal Ahmed
4,29651534
4,29651534
add a comment |
add a comment |
"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
add a comment |
"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
add a comment |
"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
"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
answered Nov 16 '18 at 6:25
shizhenshizhen
3,84541336
3,84541336
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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