android gradle with natives libs
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 36
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Description
Is there any way to setup gradle without manually build ndk? I tried with this gradle dependencies:
```groovy
implementation platform("org.lwjgl:lwjgl-bom:3.2.3")
implementation "org.lwjgl:lwjgl"
implementation "org.lwjgl:lwjgl-opus"
// linux
runtimeOnly "org.lwjgl:lwjgl::natives-linux"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux"
// arm64
runtimeOnly "org.lwjgl:lwjgl::natives-linux-arm64"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux-arm64"
// arm32
runtimeOnly "org.lwjgl:lwjgl::natives-linux-arm32"
runtimeOnly "org.lwjgl:lwjgl-opus::natives-linux-arm32"
```
But after I called Library.initialize() I get:
```
java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
at org.lwjgl.system.Library.loadSystem(Library.java:162)
```
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 with the Gradle dependencies in the issue and the failure at Library.initialize(), then inspect org.lwjgl.system.Library.java around line 162. Reproduce the UnsatisfiedLinkError and trace how liblwjgl.so is packaged and located; done means initialization succeeds with the Android Gradle setup without manually building the NDK.
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
- 25/100