小智 6
简单方法:确保在项目生成之前检查gdx-setup应用程序中的"Freetype"扩展.
否则,您可以通过以下方式将其添加到已创建的项目中:
在根项目的build.gradle中,只需添加以下依赖项:
桌面:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
Run Code Online (Sandbox Code Playgroud)
机器人:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"
Run Code Online (Sandbox Code Playgroud)
IOS:
compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
Run Code Online (Sandbox Code Playgroud)
html:不兼容,我害怕
核心:
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2013 次 |
| 最近记录: |