简体   繁体   English

如何使用lib gdx在IntelliJ中导入Universal Tween引擎

[英]how to import Universal tween engine in IntelliJ with lib gdx

okay.. I'm trying to create a splash screen for my mobile game. 好的,我正在尝试为手机游戏创建启动屏幕。 im using lib gdx library to create my game. 即时通讯使用lib gdx库创建我的游戏。 i have a problem with importing the universal tween engine for my sprite splash. 我为精灵飞溅导入通用补间引擎时遇到问题。 what should I do. 我该怎么办。

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: 我已经下载了通用补间引擎,并将其解压缩到我的项目的ios,android,core和root的“ libs”文件夹中。然后我针对每个依赖项复制并粘贴了以下行:

project(":core") { project(“:core”){

fileTree(dir: 'D:/game/core/libs', include: 'tween-engine-api.jar') fileTree(dir:'D:/ game / core / libs',包括:'tween-engine-api.jar')

compile fileTree(dir: 'D:/game/core/libs', include: 'tween-engine-api->sources.jar') 编译fileTree(dir:'D:/ game / core / libs',包括:'tween-engine-api-> sources.jar')

project(":desktop") { project(“:desktop”){

compile fileTree(dir: 'D:/game/desktop/libs', include: 'tween-engine-api.jar') 编译fileTree(dir:'D:/ game / desktop / libs',包括:'tween-engine-api.jar')

compile fileTree(dir: 'D:/game/desktop/libs', include: 'tween-engine-api->sources.jar') 编译fileTree(dir:'D:/ game / desktop / libs',包括:'tween-engine-api-> sources.jar')

project(":ios") { project(“:ios”){

compile fileTree(dir: 'D:/game/ios/libs', include: 'tween-engine-api.jar') 编译fileTree(dir:'D:/ game / ios / libs',包括:'tween-engine-api.jar')

compile fileTree(dir: 'D:/game/ios/libs', include: 'tween-engine-api->sources.jar') 编译fileTree(dir:'D:/ game / ios / libs',包括:'tween-engine-api-> sources.jar')

project(":android") { project(“:android”){

compile fileTree(dir: 'D:/game/android/libs', include: 'tween-engine-api.jar') 编译fileTree(dir:'D:/ game / android / libs',包括:'tween-engine-api.jar')

compile fileTree(dir: 'D:/game/android/libs', include: 'tween-engine-api->sources.jar') 编译fileTree(dir:'D:/ game / android / libs',包括:'tween-engine-api-> sources.jar')

the code in my Spite accessor class : 我的Spite访问器类中的代码:

   package com.game.test;

   import aurelienribon.tweenengine.TweenAccessor;

   public class SpriteAccessor implements TweenAccessor{

   }

the error: 错误:

  1. Error:(3, 33) java: package aurelienribon.tweenengine does not exist 错误:(3,33)Java:软件包aurelienribon.tweenengine不存在

  2. Error:(5, 40) java: cannot find symbol symbol: class TweenAccessor 错误:(5,40)Java:找不到符号符号:类TweenAccessor

PS PS

Im following a video tutorial by dermetfan and I also put in th terminal these lines: 我按照dermetfan的视频教程进行操作,我还在这些行中输入了以下内容:

gradlew --refresh-dependencies gradlew-刷新依赖

LibGdx uses gradle for dependency management. LibGdx使用gradle进行依赖项管理。

You can inject dependency from repository. 您可以从存储库注入依赖项。 add these lines in your core module of root build.gradle file. 将这些行添加到root build.gradle文件的核心模块中。

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'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM