昨天,我的 Android Studio 出现了以下消息,原因未知:
但我甚至没有使用 Kotlin!这些是我的 gradle 文件:
// 顶级构建文件,您可以在其中添加通用的配置选项
为什么会出现这种情况?我昨天也升级了Android Studio,升级到了3.4版本,但是数个小时后出现了这个错误,所以我认为更新和这个错误无关。
Gradle sync failed: org/jetbrains/kotlin/kapt/idea/KaptGradleModelorg/jetbrains/kotlin/kapt/idea/KaptGradleModel
Consult IDE log for more details (Help | Show Log) (2 s 227 ms)
但我甚至没有使用 Kotlin!这些是我的 gradle 文件:
// 顶级构建文件,您可以在其中添加通用的配置选项
all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
// Firebase import
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
// Stupid kotlin build-in plugin
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply plugin: 'com.android.application'
repositories {
jcenter()
}
android {
compileSdkVersion 28
testOptions {
unitTests {
includeAndroidResources = true
returnDefaultValues = true
}
}
defaultConfig {
applicationId "com.example.olegario.escamboapp"
minSdkVersion 21
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
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'
// Scroll view
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
// Firebase
implementation 'com.google.firebase:firebase-core:16.0.5'
// Firebase database
implementation 'com.google.firebase:firebase-database:16.0.6'
// Firebase storage
implementation 'com.google.firebase:firebase-storage:16.0.1'
// Firebase authentication
implementation 'com.google.firebase:firebase-auth:16.0.5'
// Mask
implementation 'com.vicmikhailau:MaskedEditText:2.0.4'
// test
testImplementation 'junit:junit:4.12'
testImplementation 'androidx.test:core:1.0.0'
testImplementation 'org.mockito:mockito-core:1.10.19'
testImplementation 'org.robolectric:robolectric:4.2'
androidTestImplementation 'org.mockito:mockito-android:+'
androidTestImplementation 'com.android.support:support-annotations:24.0.0'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test:rules:0.5'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-contrib:3.0.2'
// Framework
implementation project(':capuccino')
}
apply plugin: 'com.google.gms.google-services'
为什么会出现这种情况?我昨天也升级了Android Studio,升级到了3.4版本,但是数个小时后出现了这个错误,所以我认为更新和这个错误无关。