16KB Page Size Unsupported
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- build-system, mobile
Research direction
Reproduce the Android build with Unity 6000.0.71f1 and the Mapbox package, starting from the Gradle error for duplicate libc++_shared.so files. Inspect the Gradle launcher template and its packaging attribute, then verify that the resulting APK is 16KB aligned without the duplicate-library failure.
Written by the indexing model from the issue text.
Description
When building an APK with V3.0.7, I still encounter issues with 16KB page size alignment.
I created an empty project with Unity Version 6000.0.71f1 and let Unity build for Android. The resulting build encounters no errors:
Afterwards, I added the Mapbox package to the project as detailed in the installation description.
First, the build does not succeed due to Gradle issues:
`
What went wrong:
Execution failed for task ":launcher:mergeDebugNativeLibs".
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeNativeLibsTask$MergeNativeLibsTaskWorkAction
2 files found with path "lib/arm64-v8a/libc++_shared.so" from inputs:
- PROJECTPATH/Library/Bee/Android/Prj/IL2CPP/Gradle/unityLibrary/build/intermediates/library_jni/debug/copyDebugJniLibsProjectOnly/jni/arm64-v8a/libc++_shared.so
- GRADLEPATH/.gradle/caches/8.13/transforms/2e6a333e48c2db01e073a24617af2b10/transformed/jetified-common-ndk27-24.10.0/jni/arm64-v8a/libc++_shared.so
If you are using jniLibs and CMake IMPORTED targets, see
https://developer.android.com/r/tools/jniLibs-vs-imported-targets
`
If I tell Gradle to pick the first version it gets via the "packaging" attribute in the gradle launcher template, the build succeeds, but the resulting APK is not 16KB aligned:
- Dominant language
- C#
- Stars
- 785
- Forks
- 231
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
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.
More from mapbox/mapbox-unity-sdk
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
mapbox/mapbox-unity-sdk#2000 · 2 comments ·
-
Traffic Data Mismatch Between Mapbox Traffic Tiles and Directions API AnnotationsMay be free again @brnkhy claimed this 105 days ago, and no pull request is open. Open
mapbox/mapbox-unity-sdk#1993 · 8 comments · 1 assignee ·
-
I need to implement search functionality just like regular google maps.May be free again @brnkhy claimed this 105 days ago, and no pull request is open. Open
mapbox/mapbox-unity-sdk#1992 · 1 comment · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
mapbox/mapbox-unity-sdk#1990 · 9 comments ·
-
All units in mesh generation system should be in metersMay be free again @brnkhy claimed this 267 days ago, and no pull request is open. Openenhancement
mapbox/mapbox-unity-sdk#1969 · 1 assignee ·
All issues in mapbox/mapbox-unity-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
area:re1 bounty help wanted needs-game
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
StackExchange/StackExchange.Redis#3274 ·
Maintainers usually reply within 1 day
-
affected/v17 affected/v18 area/frontend type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
umbraco/Umbraco-CMS#24186 ·
Maintainers usually reply within 2 days