Execution failed for task ':app:kaptGenerateStubsDebugKotlin'
Task :app:kaptGenerateStubsDebugKotlin Deleting stale output file: /android/app/build/tmp/kapt3/stubs/debug Deleting stale output file: **/android/app/build/tmp/kapt3/incrementalData/debug file or directory '/android/app/libs', not found file or directory
'**/android/app/libs', not found I/O exception
(java.net.SocketException) caught when processing request to
{s}->https://repo.maven.apache.org:443: Connection reset Retrying
request to {s}->https://repo.maven.apache.org:443
Download
https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar
:app:kaptGenerateStubsDebugKotlin (Thread[Task worker for ':' Thread
7,5,main]) completed. Took 34.112 secs.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
Could not resolve all files for configuration ':app:kapt'.
Could not download sqlite-jdbc.jar (org.xerial:sqlite-jdbc:3.20.1)
Could not get resource 'https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
Read timed out
Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 38s 19 actionable tasks: 7 executed, 12 up-to-date
When I try to run the Kotlin android project, it goes wrong somehow.
Anyone know how to fix it? Thanks in advance.
Update 2018.11.16
build.gradle
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
ext.anko_version='0.10.4'
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'io.fabric.tools:gradle:1.24.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jaredsburrows:gradle-license-plugin:0.8.41"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
} }
task clean(type: Delete) {
delete rootProject.buildDir
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
...
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.0.0'
implementation 'android.arch.lifecycle:common:1.1.1'
kapt 'android.arch.persistence.room:compiler:1.0.0'
}
Android Studio 3.1.4
Build #AI-173.4907809, built on July 24, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.6
java
add a comment |
Task :app:kaptGenerateStubsDebugKotlin Deleting stale output file: /android/app/build/tmp/kapt3/stubs/debug Deleting stale output file: **/android/app/build/tmp/kapt3/incrementalData/debug file or directory '/android/app/libs', not found file or directory
'**/android/app/libs', not found I/O exception
(java.net.SocketException) caught when processing request to
{s}->https://repo.maven.apache.org:443: Connection reset Retrying
request to {s}->https://repo.maven.apache.org:443
Download
https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar
:app:kaptGenerateStubsDebugKotlin (Thread[Task worker for ':' Thread
7,5,main]) completed. Took 34.112 secs.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
Could not resolve all files for configuration ':app:kapt'.
Could not download sqlite-jdbc.jar (org.xerial:sqlite-jdbc:3.20.1)
Could not get resource 'https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
Read timed out
Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 38s 19 actionable tasks: 7 executed, 12 up-to-date
When I try to run the Kotlin android project, it goes wrong somehow.
Anyone know how to fix it? Thanks in advance.
Update 2018.11.16
build.gradle
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
ext.anko_version='0.10.4'
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'io.fabric.tools:gradle:1.24.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jaredsburrows:gradle-license-plugin:0.8.41"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
} }
task clean(type: Delete) {
delete rootProject.buildDir
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
...
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.0.0'
implementation 'android.arch.lifecycle:common:1.1.1'
kapt 'android.arch.persistence.room:compiler:1.0.0'
}
Android Studio 3.1.4
Build #AI-173.4907809, built on July 24, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.6
java
add a comment |
Task :app:kaptGenerateStubsDebugKotlin Deleting stale output file: /android/app/build/tmp/kapt3/stubs/debug Deleting stale output file: **/android/app/build/tmp/kapt3/incrementalData/debug file or directory '/android/app/libs', not found file or directory
'**/android/app/libs', not found I/O exception
(java.net.SocketException) caught when processing request to
{s}->https://repo.maven.apache.org:443: Connection reset Retrying
request to {s}->https://repo.maven.apache.org:443
Download
https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar
:app:kaptGenerateStubsDebugKotlin (Thread[Task worker for ':' Thread
7,5,main]) completed. Took 34.112 secs.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
Could not resolve all files for configuration ':app:kapt'.
Could not download sqlite-jdbc.jar (org.xerial:sqlite-jdbc:3.20.1)
Could not get resource 'https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
Read timed out
Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 38s 19 actionable tasks: 7 executed, 12 up-to-date
When I try to run the Kotlin android project, it goes wrong somehow.
Anyone know how to fix it? Thanks in advance.
Update 2018.11.16
build.gradle
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
ext.anko_version='0.10.4'
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'io.fabric.tools:gradle:1.24.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jaredsburrows:gradle-license-plugin:0.8.41"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
} }
task clean(type: Delete) {
delete rootProject.buildDir
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
...
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.0.0'
implementation 'android.arch.lifecycle:common:1.1.1'
kapt 'android.arch.persistence.room:compiler:1.0.0'
}
Android Studio 3.1.4
Build #AI-173.4907809, built on July 24, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.6
java
Task :app:kaptGenerateStubsDebugKotlin Deleting stale output file: /android/app/build/tmp/kapt3/stubs/debug Deleting stale output file: **/android/app/build/tmp/kapt3/incrementalData/debug file or directory '/android/app/libs', not found file or directory
'**/android/app/libs', not found I/O exception
(java.net.SocketException) caught when processing request to
{s}->https://repo.maven.apache.org:443: Connection reset Retrying
request to {s}->https://repo.maven.apache.org:443
Download
https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar
:app:kaptGenerateStubsDebugKotlin (Thread[Task worker for ':' Thread
7,5,main]) completed. Took 34.112 secs.
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':app:kaptGenerateStubsDebugKotlin'.
Could not resolve all files for configuration ':app:kapt'.
Could not download sqlite-jdbc.jar (org.xerial:sqlite-jdbc:3.20.1)
Could not get resource 'https://repo.maven.apache.org/maven2/org/xerial/sqlite-jdbc/3.20.1/sqlite-jdbc-3.20.1.jar'.
Read timed out
Try: Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 38s 19 actionable tasks: 7 executed, 12 up-to-date
When I try to run the Kotlin android project, it goes wrong somehow.
Anyone know how to fix it? Thanks in advance.
Update 2018.11.16
build.gradle
// Top-level build file where you can add configuration options common
to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.2.50'
ext.anko_version='0.10.4'
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.fabric.io/public'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.1'
classpath 'com.google.gms:google-services:3.2.1'
classpath 'io.fabric.tools:gradle:1.24.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jaredsburrows:gradle-license-plugin:0.8.41"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} }
allprojects {
repositories {
mavenCentral()
google()
jcenter()
maven {
url 'https://maven.google.com/'
}
jcenter {
url "http://jcenter.bintray.com/"
}
maven {
url "http://repo1.maven.org/maven2"
}
} }
task clean(type: Delete) {
delete rootProject.buildDir
}
app/build.gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions' apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'
...
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'android.arch.lifecycle:extensions:1.1.1'
implementation 'android.arch.persistence.room:runtime:1.0.0'
implementation 'android.arch.lifecycle:common:1.1.1'
kapt 'android.arch.persistence.room:compiler:1.0.0'
}
Android Studio 3.1.4
Build #AI-173.4907809, built on July 24, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.6
java
java
edited Nov 20 '18 at 8:10
Geno Chen
1,4185919
1,4185919
asked Nov 16 '18 at 2:14
Francis BaconFrancis Bacon
5231515
5231515
add a comment |
add a comment |
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%2f53330500%2fexecution-failed-for-task-appkaptgeneratestubsdebugkotlin%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%2f53330500%2fexecution-failed-for-task-appkaptgeneratestubsdebugkotlin%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