Android Studio upgrade Android resource compilation failed #115

Hi guys,

I know it’s early but I got following error from Android Studio 3.2 Preview when usingcom.android.tools.build:gradle:3.2.0-alpha14 :

Android resource compilation failed
Output:  /Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:717: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:718: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:719: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:720: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:721: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:722: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:723: error: <item> inner element must either be a resource reference or empty.
/Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:743: error: <item> inner element must either be a resource reference or empty.

Command: /Users/foo/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-alpha14-4748712-osx.jar/029b7626041099202e32811089fb25a7/aapt2-3.2.0-alpha14-4748712-osx/aapt2 compile --legacy \
        -o \
        /Users/foo/Android_Development/testtest/app/build/intermediates/res/merged/debug \
        /Users/foo/Android_Development/testtest/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml
Daemon:  AAPT2 aapt2-3.2.0-alpha14-4748712-osx Daemon #0

It’s easy to reproduce, just create an empty project with build tool version 3.2.0-alpha14 . And the following dependencies:

implementation 'io.smooch:core:5.12.1'
implementation 'io.smooch:ui:5.12.1'

After somme research this seem to be linked with following resources:

    <item name="cc_card" type="id">2222</item>
    <item name="cc_ccv" type="id">4444</item>
    <item name="cc_entry" type="id">1000</item>
    <item name="cc_entry_internal" type="id">3000</item>
    <item name="cc_exp" type="id">3333</item>
    <item name="cc_form_layout" type="id">1111</item>
    <item name="cc_zip" type="id">5555</item>
    <item name="custom" type="id"/>

I have been using Android studio Preview (from canary channel) for month now because the release version is slow on mac os hight sierra.

猜你喜欢

转载自blog.csdn.net/jasonhongcn/article/details/86352911