为什么我在设置LibGDX时没有通用的间档引擎



关于建立LibGDX项目的教程,教程说在第三方部分应该有一个通用渐变引擎。我的没有显示出来,有办法让它显示出来吗?我需要下载什么?

提前感谢:))

gx -setup-new-ui-jar没有附带TweenEngine库。还有另一种添加通用TweenEngine的方法。因为你现在使用的是Gradle,所以非常简单。

从这里下载TweenEngine https://code.google.com/p/java-universal-tween-engine/downloads/list并将其粘贴到core/libs android/libs和ios/libs文件夹中。

在构建

。Gradle将这一行添加到core, android和ios的dependencies的末尾。

    compile fileTree(dir: 'libs', include: '*.jar')

:

    project(":android") {
    apply plugin: "android"
    configurations { natives }
     dependencies {
      compile project(":core")
      compile "com.badlogicgames.gdx:gdx-backend-android:$gdxVersion"
      natives "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-x86"
      natives "com.badlogicgames.gdx:gdx-bullet-platform:$gdxVersion:natives-x86"
      compile fileTree(dir: 'libs', include: '*.jar')
     }
    }

然后清理/构建你的项目,你就可以开始了

LibGdx使用gradle进行依赖管理。
你可以从仓库中注入依赖项。

repositories {
  maven { url "https://jitpack.io" }
}

将这些行添加到根构建的核心模块中。gradle文件。

compile 'com.github.arcnor:universal-tween-engine:6.3.4'
compile 'com.github.arcnor:universal-tween-engine:6.3.4:sources'

For me change:

compile fileTree(dir: 'libs', include: '*.jar')

:

compile fileTree(dir: '../libs/tween-engine-api-6.3.3 2', include: '*.jar')

做到了。(显然,您的文件名可能不同(例如,末尾没有2))

最新更新