所以我需要导入一个特定的类(TexturePacker(:
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
然而,我收到了上面的错误。
通常,我在依赖项下将其添加到我的build.gradle中:
classpath 'com.badlogicgames.gdx:gdx-tools:1.10.0'
问题仍然存在。
提前感谢您的回答。
在project(":core")
依赖中尝试此操作
api "com.badlogicgames.gdx:gdx-tools:$gdxVersion"
这是假设您定义了gdxVersion,如果没有,您可以用特定的版本替换。也许再次运行此工具更容易https://github.com/tommyettinger/gdx-liftoff如果您有其他错误,请复制生成的文件。