Android build error
Closed this issue · 2 comments
Execution failed for task ':app:mergeDebugJavaResource'.
A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
2 files found with path 'META-INF/linux/x64/org/lwjgl/liblwjgl.so.sha1' from inputs:
- /Users/rzf/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl/3.3.2/4421d94af68e35dcaa31737a6fc59136a1e61b94/lwjgl-3.3.2.jar
- /Users/rzf/.gradle/caches/modules-2/files-2.1/org.lwjgl/lwjgl/3.3.2/767684973f259d97e7dc66a125eb153986f177e7/lwjgl-3.3.2-natives-linux.jar
Adding a packagingOptions block may help, please refer to
https://developer.android.com/reference/tools/gradle-api/8.1/com/android/build/api/dsl/ResourcesPackagingOptions
for more information
so I add exclude("META-INF/linux/x64/org/lwjgl/liblwjgl.so.sha1")
in build.gradle. but when i run, can't load liblwjgl.so
Hi,
this is, unfortunately, not yet ready for Android, it requires some decoupling from Lwjgl
If you'd like to do a PR, I can send you an invite
So, the version published on maven central is completely decoupled from lwjgl (as long as you don't require buffer using). Try:
dependencies {
implementation("io.github.kotlin-graphics:glm:0.9.9.1-12")
}