将Android Studio更新至3.3.1后,Android资源编译无法针对构建/中间/增量进行

时间:2019-07-05 05:36:55

标签: android-studio gradle

我使用了NDK,一切都可以正常运行,但是一旦更改了系统,一切就变成了地狱,无法启动构建/运行项目-我遇到了错误

Android resource compilation failed
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:624: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:625: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:626: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:627: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:628: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:629: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:630: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:631: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:637: error: <item> inner element must either be a resource reference or empty.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml:808: warn: ignoring element 'g' with unknown namespace 'http://schemas.android.com/apk/res/android'.
/home/bajrang/Android Live Projects/Parkway/app/build/intermediates/incremental/mergePentestDebugResources/merged.dir/values/values.xml: error: file failed to compile.

我已完成删除 .gradle 文件夹和清理重建,删除构建文件夹的操作,但没有成功,请帮助我-

1 个答案:

答案 0 :(得分:0)

我在项目的ids.xml文件中使用以下行

<item type="id" name="day_picker_selected_date_layout">false</item>

将其更改为下面的行之后,便会固定。

<item type="id" name="day_picker_selected_date_layout"/>