Skip to content Skip to sidebar Skip to footer

Libgdx Android - GL Thread (NullPointerException) & Missing Class File

i'm using the LibGdx framework to create a game and I'm using Eclipse 4.4 (Luna). Whilst i'm debugging my application this method is breaking. @Override public void run() {

Solution 1:

Answer :

An AtlasRegion was being called from the renderer class without being assigned a value in the assets class hence the null Exception

What is a NullPointerException, and how do I fix it?

changing that to a field that is declared solved this problem for me on the code side.

For the solution to the backend issue:

GLSurfaceView$GLThread.class [in android.opengl [in C:\Users\me\AppData\Local\Android\android-sdk\platforms\android-8\android.jar]] does not exist

I downloaded source codes from Google, and assigned the source code inside the SDK folder, C:\Users\me\AppData\Local\Android\android-sdk\sources\, if you don't already have a source folder create one, put the sources in there and it should reload the class that was being handled. (in this case GLSurfaceView.class for API 2.2)

Another way In Eclipse 4.4 (Luna) or any other eclipse I do believe, go onto your project folder right click > properties > java build path and assign the source file for android.jar in your dependent libraries.


Post a Comment for "Libgdx Android - GL Thread (NullPointerException) & Missing Class File"