如何确定Android创建错误资源目录的原因? Gradle失败了:
6:47:17.175 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Process 'command 'C:\libl\Android\sdk\build-tools\1.1.0\aapt.exe'' finished with exit value 1 (state: FAILED)
6:47:17.180 [INFO] [org.gradle.api.Project] invalid resource directory name:
C:\dev\appdir\build\intermediates\res\merged\dev\debug/values-b+sr+Latn
调试/值-b + sr + Latn 来自哪里?我们的项目没有资源。它只是价值和价值-sw720p类型的东西。我清楚地看到Android创建的这个文件夹:
\build\intermediates\exploded-aar\com.android.support\mediarouter-v7\24.0.0\res\values-b+sr+Latn
和
\build\intermediates\exploded-aar\com.android.support\appcompat-v7\24.2.1\res\values-b+sr+Latn
这里有两个问题。为什么Android会这样做,我该怎么做呢?如何修复Android appcompat和mediarouter在Windows上运行?
请注意,已做出更改:
compile 'com.android.support:support-v4:21.0.+'
compile 'com.google.android.gms:play-services:4.0.30'
到此:
compile 'com.android.support:appcompat-v7:24.2.1'
compile 'com.android.support:support-v4:24.2.1'
compile 'com.google.android.gms:play-services:9.6.1'