Android studio 降低编译版本报错
开发过程中需要降低编译版本,我从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'
}
请教大神该怎么解决。
以下是错误信息:
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'
}
请教大神该怎么解决。
...全文
相关推荐
android studio做的一个购物APP
这个android studio做的一个购物APP,给新手一个参考,未来用android studio代替eclipse是的趋势,
Android Studio 报错failed to create jvm error code -4的解决方法
安装完 Android Studio 后启动,却报错如下: 代码如下:failed to create jvm error code -4 这一般应是内存不够用所致,解决方法参考如下。 打开 Android Studio 安装目录下的bin目录,查找并打开文件 studio.exe.vmoptions,修改代码: 代码如下:-Xmx512m 为 -Xmx256m 保存后应即可正常打开了。 您可能感兴趣的文章:Android Studio 引用外部依赖时报错的解决方法androidstudio3.0使用butterknife报错解决的解决方法解
Android studio 最新汉化包 汉化文件
Android studio 最新汉化包 汉化文件 直接复制到安装目录 lib下即可
安卓期末大作业,装修建材App包含登录注册含数据库,Androidstudio开发适合初学者使用
装修建材平台App(免积分下载),安卓开发大二期末作业,可以登录注册,包含SQL数据库,详情请看我的文章介绍
Android Studio 2.0 汉化包
Android Studio 2.0 汉化包 部分汉化 还是不错的 免费共享出来


