Hot answers tagged

4

You need to specify the ShapeType in the begin call on the ShapeRenderer. shapeRenderer.begin(ShapeType.Point);


2

So the solution I found: Re-build the project with GDX setup Import project added the following to the build.gradle in the project root under the "android" dependencies and the "core" dependencies section. clean project Select all gradle projects, right click on them, gradle->refresh dependencies That sorted it for me... compile fileTree(dir: '../libs', ...


1

The section you have here is ironSource telling you how to get Google Mobile Ads implemented in Unity. They seem to be behind the times, because Google’s recommended way of doing this is using the Jar resolver instead. I don’t think any of the stuff listed there is actually necessary. That is, you shouldn’t need to create a custom Gradle template just for ...


1

I was updating the wrong build.gradle. I was updating the gradle of the package within the "app". So having updated my build.gradle file (Module: app) to include the following last dependency: dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.2.1' compile group: 'com....


1

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-...


1

I guess you are missing something,try adding this line to ext in all project ext{ gdxUtilsVersion = '0.13.3' }


1

From the Terminal, run: gradlew --refresh-dependencies Also, in the Gradle tool window, you can refresh all Gradle projects, though you should only need to do this if you make changes to your Gradle scripts:


1

Like Khopa has stated, use Android Studio. I still a beginner bit of a beginner to libgdx, but so for I have found that Android Studio covers all of my needs. You can even run the desktop version from A.S. and on the plus side, you can easily emulate an android device using the built in intel HAXM, only works with intel cpu's. For AMD use genymotion, which A....


1

As workaround, I personnaly use Android Studio which is based on Intellij Idea when developping LibGdx app for Android. Just import build.gradle in Android Studio, and you should be ready to edit your core, desktop and Android libGDX project without any further configuration.


Only top voted, non community-wiki answers of a minimum length are eligible