我更新为AndroiStudio 3.4 现在我收到错误消息:“ Gradle Project同步失败”
ERROR: ParseError at [row,col]:[19,9]
Message: expected start or end tag
Affected Modules: app
但是我在build.gradle中找不到任何非法字符或错误:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.tye.vbassistent"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation "org.jetbrains.anko:anko-common:0.8.3" // TyE: Hinzugefügt 2018-04 für 'alert'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:support-vector-drawable:27.1.1'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}
我怎么了?
答案 0 :(得分:1)
该错误消息不是指向build.gradle
文件,而是指向AndroidManifest.xml
。
在[row,col]:[19,9]的AndroidManifest.xml
中检查语法错误