Ejected app android error on build

#1
Android resource compilation failed
Output:  /Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1161: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1162: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1163: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1164: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1165: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1166: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1167: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/x/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1168: error: <item> inner element must either be a resource reference or empty.
/Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml:1204: error: <item> inner element must either be a resource reference or empty.

Command: /Users/x/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-osx.jar/8f851fde749c6b4e7a0fc7d36c27498a/aapt2-3.2.1-4818971-osx/aapt2 compile --legacy \
        -o \
        /Users/x/HMH/pilsner-frontend/android/app/build/intermediates/res/merged/devMinSdkDevKernel/debug \
        /Users/x/HMH/pilsner-frontend/android/app/build/intermediates/incremental/mergeDevMinSdkDevKernelDebugResources/merged.dir/values/values.xml
Daemon:  AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

I’ve ejected the app… and this happens when I try and build in Android Studio, I did not update any Gradle

#2

Can you share your Android Studio version and expo version details?

#3

Hi,

 "expo": "31.0.5",
 "expokit": "31.0.2",

Android Studio 3.2.1

#4

I will suggest you for updating expo version from 31 to 32, remove android folder before update, after new install run eject, I hope It will work.

I had same issue. with same configuration

closed #5

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.