0

我的问题是自我解释:是否可以在 LIBGDX 的 ios-moe 版本上使用 Box2D 和 Box2D 灯?我可以在桌面上运行它,但是在 IOS 上启动时出现以下错误:

java.lang.UnsatisfiedLinkError: No implementation found for long com.badlogic.gdx.physics.box2d.World.newWorld(float, float, boolean) (tried 

我的 build.gradle 如下:

project(":ios-moe") {
apply plugin: "moe"

configurations { natives }

dependencies {
    compile project(":core")
    compile "com.badlogicgames.gdx:gdx-backend-moe:$gdxVersion"
    natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-ios"
    natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
    compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"

}
project(":core") {
apply plugin: "java"


dependencies {
    compile "com.badlogicgames.gdx:gdx:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
    compile "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-ios"
    compile "com.badlogicgames.box2dlights:box2dlights:$box2DLightsVersion"

}

有任何想法吗?

4

0 回答 0