在设置LibGDX项目的教程中,第三方部分应该有一个通用的Tween引擎。但是我的没有显示出来,有什么方法可以让它显示出来吗?我需要下载什么东西?
提前感谢:))
提前感谢:))
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')
}
}
repositories {
maven { url "https://jitpack.io" }
}
将以下几行添加到您的根build.gradle文件的核心模块中。
compile 'com.github.arcnor:universal-tween-engine:6.3.4'
compile 'com.github.arcnor:universal-tween-engine:6.3.4:sources'
compile fileTree(dir: 'libs', include: '*.jar')
改为:
compile fileTree(dir: '../libs/tween-engine-api-6.3.3 2', include: '*.jar')
就解决了问题。(显然,你的文件名可能不同(例如末尾没有2
))