Tim*_*Tim 4 android android-support-library android-gradle-plugin
您好我正在尝试使用Android支持库构建我的第一个项目,以支持市场上所有设备的材料设计.在我的旅程开始时,我从零开始创建一个项目,当我使用此模块配置从graddle构建时:
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "19.1"
defaultConfig {
applicationId "com.sunshine.org.weather"
minSdkVersion 13
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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'
})
testCompile 'junit:junit:4.12'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.android.support:design:24.2.1'
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:support-v13:24.2.1'
}
Run Code Online (Sandbox Code Playgroud)
我得到了这些错误 - >>>
GRADDLE ERROR ::
app:generateDebugResources UP-TO-DATE:app:mergeDebugResources:app:processDebugManifest UP-TO-DATE:app:processDebugResources无效的资源目录名:C:\ Users\weather\app\build\intermediates\res\merged \调试/值-b + SR + LATN
失败
FAILURE:构建因异常而失败.
出了什么问题:任务':app:processDebugResources'执行失败.com.android.ide.common.process.ProcessException:无法执行aapt
尝试:使用--stacktrace选项运行以获取堆栈跟踪.使用--info或--debug选项运行以获取更多日志输出.
BUILD FAILED
当我删除包含相应XML文件的"values-b + sr + Latn"文件夹时,在我构建项目时,它总是由工作室重新创建.我试图清理和建造,但这不能解决我的问题.
我正在尝试在KitKat(API级别14)上运行应用程序,并希望将材料设计下载到HONEYCOMB(API级别13)并支持应用程序直到NOUGAT(API级别24)
您能指出我的错误吗?
在build.gradle中尝试这个
aaptOptions {
ignoreAssetsPattern "!values-b+sr+Latn"
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3725 次 |
最近记录: |