I've created LibGDX project with latest Gradle based setup application v1.1.0. When I created I didn't add FreeType extension on the project. Now I need it. How can I add it to already created project?
From the libGDX's wiki
FreeTypeFont Gradle
Core Dependency:
- compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
Desktop Dependency:
- compile "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-desktop"
Android Dependency:
- 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-x86"
iOS Dependency:
- compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
- natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-ios"
Don't forget to refresh your dependencies ;)