如何使用lib gdx导入IntelliJ中的通用补间引擎 [英] how to import Universal tween engine in IntelliJ with lib gdx
问题描述
好吧..我正在尝试为我的手机游戏创建一个启动画面。即时通讯使用lib gdx库来创建我的游戏。我有一个导入我的精灵飞溅的通用补间引擎的问题。我应该怎么做。
okay.. I'm trying to create a splash screen for my mobile game. im using lib gdx library to create my game. i have a problem with importing the universal tween engine for my sprite splash. what should I do.
我已经下载了通用补间引擎并将其解压缩到项目的ios,android,core和root中的libs文件夹中..并且我为每个依赖项复制并粘贴这些行:
I've downloaded the universal tween engine and extracted it in the "libs" folder in the ios, android, core, and root of my project.. and i copied and paste these lines for each dependencies:
project(:core){
project(":core") {
fileTree(dir:'D:/ game / core / libs',包括:'tween-engine-api.jar')
fileTree(dir: 'D:/game/core/libs', include: 'tween-engine-api.jar')
编译fileTree(dir:'D:/ game / core / libs',包括:'tween-engine-api-> sources.jar')
compile fileTree(dir: 'D:/game/core/libs', include: 'tween-engine-api->sources.jar')
project(:desktop){
project(":desktop") {
编译fileTree(目录:'D:/ game / desktop / libs',包括:'tween-engine-api.jar')
compile fileTree(dir: 'D:/game/desktop/libs', include: 'tween-engine-api.jar')
编译fileTree(目录:'D:/ game / desktop / libs',包括:'tween-engine-api-> sources.jar')
compile fileTree(dir: 'D:/game/desktop/libs', include: 'tween-engine-api->sources.jar')
project(:i os){
project(":ios") {
编译fileTree(dir:'D:/ game / ios / libs',包括:'tween-engine-api .jar')
compile fileTree(dir: 'D:/game/ios/libs', include: 'tween-engine-api.jar')
编译fileTree(dir:'D:/ game / ios / libs',包括:'tween-engine-api - > sources.jar')
compile fileTree(dir: 'D:/game/ios/libs', include: 'tween-engine-api->sources.jar')
project(:android){
project(":android") {
编译fileTree(dir:'D:/ game / android / libs',包括:'tween-engine-api.jar')
compile fileTree(dir: 'D:/game/android/libs', include: 'tween-engine-api.jar')
编译fileTree(dir:'D:/ game / android / libs',包括:'tween-engine-api-> sources.jar')
compile fileTree(dir: 'D:/game/android/libs', include: 'tween-engine-api->sources.jar')
我的Spite访问器类中的代码:
the code in my Spite accessor class :
package com.game.test;
import aurelienribon.tweenengine.TweenAccessor;
public class SpriteAccessor implements TweenAccessor{
}
错误:
-
错误:(3,33)java:包aurelienribon.tweenengine不存在
Error:(3, 33) java: package aurelienribon.tweenengine does not exist
错误:(5,40)java:找不到符号符号:class TweenAccessor
Error:(5, 40) java: cannot find symbol symbol: class TweenAccessor
PS
我跟随dermetfan的视频教程,我也把这些行放到了终端:
Im following a video tutorial by dermetfan and I also put in th terminal these lines:
gradlew --refresh-dependencies
gradlew --refresh-dependencies
推荐答案
LibGdx使用gradle进行依赖关系管理。
LibGdx uses gradle for dependency management.
您可以从存储库注入依赖项。
在root build.gradle文件的核心模块中添加这些行。
You can inject dependency from repository. add these lines in your core module of root build.gradle file.
repositories {
maven { url "https://jitpack.io" }
}
compile 'com.github.arcnor:universal-tween-engine:6.3.4'
compile 'com.github.arcnor:universal-tween-engine:6.3.4:sources'
这篇关于如何使用lib gdx导入IntelliJ中的通用补间引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!