我最近开始开发一个使用数据绑定的android应用程序.我现在的问题是因为这个错误我无法运行应用程序:
Error:(10) Error parsing XML: duplicate attribute
Run Code Online (Sandbox Code Playgroud)
使用数据绑定(我正在使用片段)在每个文件中发生错误.我用Google搜索了3个小时,我找不到解决方案.
的build.gradle:
apply plugin: 'com.android.application'
android {
dexOptions {
preDexLibraries = false
javaMaxHeapSize "2g"
}
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "at.blacktasty.schooltoolmobile"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding {
enabled = true
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile files('libs/eneter-messaging-android-7.0.1.jar')
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0' …Run Code Online (Sandbox Code Playgroud)