Answer the question
In order to leave comments, you need to log in
How to fix AAPT error when downloading and building Mapbox SDK?
My Android app stack using Mapbox SDK is powered by React Native and Expo SDK with ExpoKit.
I set up the contents of android/build.grandle according to the instructions for installing and configuring Mapbox GL for... and when executing expo run:android the compiler gave the following error:
Execution failed for task ':app:processDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Failed to transform mapbox-android-sdk-9.7.1.aar (com.mapbox.mapboxsdk:mapbox-android-sdk:9.7.1) to match attributes {artifactType=android-compiled-dependencies-resources, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
> Execution failed for AarResourcesCompilerTransform: /root/.gradle/caches/transforms-3/80ebc8902067605baf7fa7dd209bfa14/transformed/jetified-mapbox-android-sdk-9.7.1.
> AAPT2 aapt2-4.1.0-6503028-linux Daemon #22: Unexpected error during compile '/root/.gradle/caches/transforms-3/80ebc8902067605baf7fa7dd209bfa14/transformed/jetified-mapbox-android-sdk-9.7.1/res/drawable-xxxhdpi-v4/mapbox_compass_icon.png', attempting to stop daemon.
This should not happen under normal circumstances, please file an issue if it does.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question