S
S
Sergey Zolotarev2021-11-21 15:24:37
Java
Sergey Zolotarev, 2021-11-21 15:24:37

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.


Have you experienced this? How to solve this problem and what does this problem mean?

The very example of my build.gradle is in the comments to this question and thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question