build升级到classpath 'com.android.tools.build:gradle:3.3.2'
运行就报这样的错
Caused by: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:667: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:668: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:669: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:674: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:675: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:676: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:677: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:678: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:683: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:684: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:685: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:686: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:695: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:696: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:697: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:698: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:699: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:701: error: <item> inner element must either be a resource reference or empty.
D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:702: error: <item> inner element must either be a resource reference or empty.
at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create(Aapt2Exception.kt:45)
at com.android.builder.internal.aapt.v2.Aapt2Exception$Companion.create$default(Aapt2Exception.kt:39)
at com.android.builder.internal.aapt.v2.Aapt2DaemonImpl.doCompile(Aapt2DaemonImpl.kt:152)
at com.android.builder.internal.aapt.v2.Aapt2Daemon.compile(Aapt2Daemon.kt:81)
at com.android.builder.internal.aapt.v2.Aapt2DaemonManager$LeasedAaptDaemon.compile(Aapt2DaemonManager.kt:170)
at com.android.build.gradle.internal.res.Aapt2CompileWithBlameRunnable$run$1.invoke(Aapt2CompileWithBlameRunnable.kt:37)
... 10 more
其实错误很简单,直接去build目录下查看这个文件的667行D:\workspace_eclipse_formal\ALL_aispeech\aispeechU27\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:667:
发现
image.png
将<item name="_arrow" type="id">false</item>
改为
<item name="_arrow" type="id"/>
网友评论