Closed sangrao closed 2 weeks ago
Here's a workaround for you:
Add module/src/res/raw/keep.xml
with the following contents:
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="
@raw/keep_arcore,
@raw/keep"
/>
I can't see the resources in the output artifacts so this should be minified.
Thanks, the suggestion in https://github.com/google-ar/arcore-android-sdk/issues/1657#issuecomment-2152894739 worked.
When arcore dependency is included in featuremodule with base app that uses
shrinkResource
build feature, build fails with the following error message when attempting to make the App bundle/apk.Resource table of module contains references to non-existing files: [res/raw/keep_arcore.xml]
VERSIONS USED
adb shell pm dump com.google.ar.core | findstr /i "packages: versionName"
On macOS, use:adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
adb shell getprop ro.build.fingerprint
:STEPS TO REPRODUCE THE ISSUE
ADDITIONAL COMMENTS