Build error with gradle 4.1.0 and mapbox_compass_icon.png
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 14.6k
- Forks
- 3.2k
- Avg merge
- 12d 11h
- Merged PRs (30d)
- 4
Description
Hello and sorry for the bad english
There is a problem with building microG.
Android build gradle version used by default isext.androidBuildGradleVersion = '4.1.0' and AAPT2 4.1.0 process each time gets stuck on mapbox_compass_icon.png
CLICK
> Task :play-services-core:processWithMapboxWithNearbyDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':play-services-core:processWithMapboxWithNearbyDebugResources'.
> Could not resolve all files for configuration ':play-services-core:withMapboxWithNearbyDebugRuntimeClasspath'.
> Failed to transform mapbox-android-sdk-9.2.1.aar (com.mapbox.mapboxsdk:mapbox-android-sdk:9.2.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: /home/vavun/.gradle/caches/transforms-2/files-2.1/7a055a806675516538030f5dabb22036/mapbox-android-sdk-9.2.1.
> AAPT2 aapt2-4.1.0-6503028-linux Daemon #0: Unexpected error during compile '/home/vavun/.gradle/caches/transforms-2/files-2.1/7a055a806675516538030f5dabb22036/mapbox-android-sdk-9.2.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.
The problem also persists when using gradle 4.1.1 and some 4.2.x beta's
Until yesterday I was solving the problem using gradle 4.0.2, but after today's changes it causes other problems and this method is definitely not the correct solution to the problem. Google did not help.
I'm running ubuntu 20.04.1 LTS
microG source code has no changes except org.gradle.jvmargs=-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError in gradle.properties
What am I doing wrong ?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing :play-services-core:processWithMapboxWithNearbyDebugResources with the stated Android Gradle versions and inspect gradle.properties. Check the referenced mapbox_compass_icon.png resource and the Mapbox 9.2.1 dependency; done means establishing a supported build configuration or documenting the confirmed cause and workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100