Android studio 降低编译版本报错

swz1993 2017-08-22 03:50:47
开发过程中需要降低编译版本,我从25降低到23的时候报错

以下是错误信息:

D:\Project\EWATERSYS-APP\EWATERSYS-AndroidV1.0\Development\EwaterAndroid\app\build\intermediates\res\merged\debug\values\values.xml
Error:(629) Attribute "radius" has already been defined
Error:(629) Attribute "radius" has already been defined
D:\Project\EWATERSYS-APP\EWATERSYS-AndroidV1.0\Development\EwaterAndroid\app\build\intermediates\res\merged\debug\values-v24\values-v24.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.
Error:(4) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

以下是我的gradle配置:

android {

compileSdkVersion 23
buildToolsVersion "23.0.2"

defaultConfig {
applicationId "com.ewater.test.ewatersys"
minSdkVersion 16
targetSdkVersion 23
versionCode 1
versionName '1.0'

multiDexEnabled true // 启用multiDex支持。
multiDexKeepProguard file('multiDexKeep.pro') // keep specific classes using proguard syntax
multiDexKeepFile file('multiDexKeep.txt') // keep specific classes
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

packagingOptions {
exclude '*.apk'
}

dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}

lintOptions {
abortOnError false
}

signingConfigs {
release {
storeFile file("JPD.jks")
storePassword "mediaplatform"
keyAlias "mediaplatform"
keyPassword "mediaplatform"
v2SigningEnabled false
}
}

}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':chartlibrary')
compile project(':ui')
compile files('libs/BaiduLBS_Android.jar')
compile files('libs/BaiduTraceSDK_v3_0_1.jar')
compile files('libs/bos-android-sdk-1.0.2.jar')
compile files('libs/pinyin4j-2.5.0.jar')
compile files('libs/INetSDK.jar')
compile files('libs/IPlaySDK.jar')
compile files('libs/libToUProxy.jar')
compile 'com.android.support:design:25.1.0'
compile 'com.android.support:multidex:1.0.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.facebook.rebound:rebound:0.3.8'
compile 'com.mylhyl:zxingscanner:1.2.1'
compile 'com.mylhyl:commonrefreshlayout:1.0'
compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:1.0.2'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.jakewharton:butterknife:8.8.1'
testCompile 'junit:junit:4.12'
}
请教大神该怎么解决。
...全文
1415 回复 打赏 收藏 举报
写回复
回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
相关推荐
发帖
Symbian

3119

社区成员

塞班系统(Symbian系统)是塞班公司为手机而设计的操作系统,它的前身是英国宝意昂公司的 EP ( Electronic Piece of cheese)操作系统。
社区管理员
  • Symbian社区
加入社区
帖子事件
创建了帖子
2017-08-22 03:50
社区公告
暂无公告