I'm trying to establish a gradle build for an Android library project, but currently the build fails during processDebugRes with an aapt error:
:packageDebugAidl UP-TO-DATE
:packageDebugRes UP-TO-DATE
:prepareDebugDependencies UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugRes
ERROR: Unknown option '--output-text-symbols'
Android Asset Packaging Tool
Usage:
aapt l[ist] [-v] [-a] file.{zip,jar,apk}
List contents of Zip-compatible archive.
(...)
:processDebugRes FAILED
FAILURE: Build failed with an exception.
The build.gradle is pretty simple and looks like this:
buildscript {
repositories { mavenCentral() }
dependencies { classpath 'com.android.tools.build:gradle:0.1' }
}
apply plugin: 'android-library'
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
android {
target = 'android-16'
defaultConfig {
versionCode = 16
versionName = "1.0"
minSdkVersion = 8
}
}
BTW, the aapt version is 0.2.
I'm new to the whole Gradle thing, so thanks in advance for any pointers on how to solve this problem.
终于找到了我自己的问题 - 我使用的是Android SDK平台工具的第14版,而不是15版的预览版,这是根据http://tools.android.com/tech-docs/new-build-所要求的。 system / using-the-build-system 。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.