我正在将我的应用程序从Eclipse迁移到AndroidStudio。我的应用程序是使用SDK 19编译的。 - 我的build.gradle有以下设置:
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "company.app"
minSdkVersion 12
targetSdkVersion 19
maxSdkVersion 19
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
一切都在构建,我可以开始我的应用程序。 - >确定
现在我想更改编译SDK 19,但我不能再构建项目了:
compileSdkVersion 19
buildToolsVersion "19.1.0"
我收到令人困惑的消息,这对我没有任何意义:
消息:
Error:Execution failed for task ':app:processDemo_testResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Gradle控制台:
invalid resource directory name: C:\Users\andreas\AndroidStudioProjects\Chronica\app\build\intermediates\res\merged\demo_test/drawable-anydpi-v21
invalid resource directory name: C:\Users\andreas\AndroidStudioProjects\Chronica\app\build\intermediates\res\merged\demo_test/values-b+sr+Latn
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDemo_testResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 8.787 secs
我已经安装了SDK 19和buildTools 19。
有人能帮助我吗?