Libgdx game crashes on Android

后端 未结 1 1208
迷失自我
迷失自我 2021-02-18 13:43

I made a game using libgdx and it runs fine on both desktop and android before. I\'m not sure if its because I started using box2d physics engine and liquidfun particles,what ba

1条回答
  •  遥遥无期
    2021-02-18 14:32

    Put this in the android dependencies:

        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-armeabi-v7a"
        natives "com.badlogicgames.gdx:gdx-box2d-platform:$gdxVersion:natives-x86"
    

    and this in core dependencies:

        compile "com.badlogicgames.gdx:gdx-box2d:$gdxVersion"
    

    0 讨论(0)
提交回复
热议问题