1
\$\begingroup\$

I'm planning to use FreeType fonts in my game (LibGDX and Android Studio) and I already added the freetype dependencies in my project. How can I refresh the dependencies after adding them? I have found few similar questions regarding this topic but didn't offer much help. Here is an image of the dependencies:

enter image description here

\$\endgroup\$
1
  • \$\begingroup\$ what's the error? \$\endgroup\$
    – Jacob
    Jan 25 '17 at 8:59
1
\$\begingroup\$

Try this command for explicit refreshing

./gradlew --refresh-dependencies

but I guess your ide should resolve it after you save the gradle file. You also can press Sync Now (not exactly sure what it does); it's on top right on your screenshot.

The command was taken from here: https://github.com/libgdx/libgdx/wiki/Dependency-management-with-Gradle#libgdx-dependencies

\$\endgroup\$
0
\$\begingroup\$

There's a banner that says :

Gradle files has changed since last project sync. A project sync may be necessary for the IDE to work properly

You can clicksync now and it will refresh the Gradle project

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .