problems synchronizing gradle with android studio
I have a laptop running Linux Mint which is offline mostly of the time. I've installed Android Studio 3.2.1, the JDK 1.8.0_101, Gradle 4.6-all and the Android-SDK 24.4.1. I downloaded and installed the SDK platform API 19 for Android 4.4.2.
Back into the Android Studio I went into Settings / Build, Execution, Deployment / Gradle
and checked Offline work
, also I hit Use local gradle distribution
and Android Studio recognized by itself the Gradle installation folder.
Now when I go to Build / Make project
it begins the building, but it shows me this error:
And the error log says:
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.6-all.
Required by:
project :
... 102 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:4.6-all available for offline mode.
... 128 more
Here is my build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:4.6-all'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
and my gradle-wrapper.properties file:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
There is just one more thing I'd like to add: this is the very first time I use Android Studio. I've been googleing this for a while and always find the same answer: check offline work.
I went to a friend for help and he told me to remove the default layout. I can't tell what is the default layout.
My question is: how can I get this working offline? Do I need to use a different version of Gradle? What am I missing here?
android android-studio gradle
|
show 2 more comments
I have a laptop running Linux Mint which is offline mostly of the time. I've installed Android Studio 3.2.1, the JDK 1.8.0_101, Gradle 4.6-all and the Android-SDK 24.4.1. I downloaded and installed the SDK platform API 19 for Android 4.4.2.
Back into the Android Studio I went into Settings / Build, Execution, Deployment / Gradle
and checked Offline work
, also I hit Use local gradle distribution
and Android Studio recognized by itself the Gradle installation folder.
Now when I go to Build / Make project
it begins the building, but it shows me this error:
And the error log says:
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.6-all.
Required by:
project :
... 102 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:4.6-all available for offline mode.
... 128 more
Here is my build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:4.6-all'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
and my gradle-wrapper.properties file:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
There is just one more thing I'd like to add: this is the very first time I use Android Studio. I've been googleing this for a while and always find the same answer: check offline work.
I went to a friend for help and he told me to remove the default layout. I can't tell what is the default layout.
My question is: how can I get this working offline? Do I need to use a different version of Gradle? What am I missing here?
android android-studio gradle
I doubt this is Android Studio problem. The same error would show up on the project terminal after./gradlew build
– cricket_007
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
@EamonScullion and @cricket_007, I edited my post with the contents of thebuild.gradle
andgradle-wrapper.properties
files.
– assembler
Nov 12 '18 at 14:01
|
show 2 more comments
I have a laptop running Linux Mint which is offline mostly of the time. I've installed Android Studio 3.2.1, the JDK 1.8.0_101, Gradle 4.6-all and the Android-SDK 24.4.1. I downloaded and installed the SDK platform API 19 for Android 4.4.2.
Back into the Android Studio I went into Settings / Build, Execution, Deployment / Gradle
and checked Offline work
, also I hit Use local gradle distribution
and Android Studio recognized by itself the Gradle installation folder.
Now when I go to Build / Make project
it begins the building, but it shows me this error:
And the error log says:
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.6-all.
Required by:
project :
... 102 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:4.6-all available for offline mode.
... 128 more
Here is my build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:4.6-all'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
and my gradle-wrapper.properties file:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
There is just one more thing I'd like to add: this is the very first time I use Android Studio. I've been googleing this for a while and always find the same answer: check offline work.
I went to a friend for help and he told me to remove the default layout. I can't tell what is the default layout.
My question is: how can I get this working offline? Do I need to use a different version of Gradle? What am I missing here?
android android-studio gradle
I have a laptop running Linux Mint which is offline mostly of the time. I've installed Android Studio 3.2.1, the JDK 1.8.0_101, Gradle 4.6-all and the Android-SDK 24.4.1. I downloaded and installed the SDK platform API 19 for Android 4.4.2.
Back into the Android Studio I went into Settings / Build, Execution, Deployment / Gradle
and checked Offline work
, also I hit Use local gradle distribution
and Android Studio recognized by itself the Gradle installation folder.
Now when I go to Build / Make project
it begins the building, but it shows me this error:
And the error log says:
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.android.tools.build:gradle:4.6-all.
Required by:
project :
... 102 more
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: No cached version of com.android.tools.build:gradle:4.6-all available for offline mode.
... 128 more
Here is my build.gradle:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript
repositories
google()
jcenter()
dependencies
classpath 'com.android.tools.build:gradle:4.6-all'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
allprojects
repositories
google()
jcenter()
task clean(type: Delete)
delete rootProject.buildDir
and my gradle-wrapper.properties file:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-4.6-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
There is just one more thing I'd like to add: this is the very first time I use Android Studio. I've been googleing this for a while and always find the same answer: check offline work.
I went to a friend for help and he told me to remove the default layout. I can't tell what is the default layout.
My question is: how can I get this working offline? Do I need to use a different version of Gradle? What am I missing here?
android android-studio gradle
android android-studio gradle
edited Nov 12 '18 at 13:56
assembler
asked Nov 12 '18 at 13:50
assemblerassembler
99251024
99251024
I doubt this is Android Studio problem. The same error would show up on the project terminal after./gradlew build
– cricket_007
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
@EamonScullion and @cricket_007, I edited my post with the contents of thebuild.gradle
andgradle-wrapper.properties
files.
– assembler
Nov 12 '18 at 14:01
|
show 2 more comments
I doubt this is Android Studio problem. The same error would show up on the project terminal after./gradlew build
– cricket_007
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
@EamonScullion and @cricket_007, I edited my post with the contents of thebuild.gradle
andgradle-wrapper.properties
files.
– assembler
Nov 12 '18 at 14:01
I doubt this is Android Studio problem. The same error would show up on the project terminal after
./gradlew build
– cricket_007
Nov 12 '18 at 13:54
I doubt this is Android Studio problem. The same error would show up on the project terminal after
./gradlew build
– cricket_007
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
@EamonScullion and @cricket_007, I edited my post with the contents of the
build.gradle
and gradle-wrapper.properties
files.– assembler
Nov 12 '18 at 14:01
@EamonScullion and @cricket_007, I edited my post with the contents of the
build.gradle
and gradle-wrapper.properties
files.– assembler
Nov 12 '18 at 14:01
|
show 2 more comments
0
active
oldest
votes
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%2f53263591%2fproblems-synchronizing-gradle-with-android-studio%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f53263591%2fproblems-synchronizing-gradle-with-android-studio%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 doubt this is Android Studio problem. The same error would show up on the project terminal after
./gradlew build
– cricket_007
Nov 12 '18 at 13:54
@cricket_007, I'm asking because I have no idea on how to solve this
– assembler
Nov 12 '18 at 13:54
Hi, can you post you build.gradle file? This will show if there are any discrepancies between version numbers
– Eamon Scullion
Nov 12 '18 at 13:55
Could you please add your gradle files to the question?
– cricket_007
Nov 12 '18 at 13:55
@EamonScullion and @cricket_007, I edited my post with the contents of the
build.gradle
andgradle-wrapper.properties
files.– assembler
Nov 12 '18 at 14:01