0
더 이상 텍스처를로드 할 수없는 이상한 오류가 발생했습니다. 내가 사용한 자산은 괜찮지 만 새 자산을 추가하려고하면 다음과 같이 나타납니다.Android Studio Loading Texture 오류
E/AndroidRuntime: FATAL EXCEPTION: GLThread 9855
Process: com.NeverMind.MainClass.android, PID: 18482
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: bg.png
at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:140)
at com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:98)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:100)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:92)
at com.NeverMind.DontFall.android.MainClass.create(MainClass.java:200)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:241)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1520)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
Caused by: java.io.IOException: Error loading pixmap: decoder init failed for stream
at com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.<init>(Gdx2DPixmap.java:57)
at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java:138)
at com.badlogic.gdx.graphics.TextureData$Factory.loadFromFile(TextureData.java:98)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:100)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java:92)
at com.NeverMind.DontFall.android.MainClass.create(MainClass.java:200)
at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:241)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1520)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
I didn't do anything stupid. I also tried to trick him and put the new texture with the name of an old one and it didn't work. This is the first time this happens, I have thousands of lines in the code.
코드를 보지 않고도이 위협이 사용자에게 도움이 될 것이라고 생각합니다. http://stackoverflow.com/questions/25426087/e-androidruntime-fatal-exception-main – Danieboy
@Dan C, 예외의 원인이되는 코드 섹션을 표시 할 수 있습니까? – munyul
동작 및 throw 된 예외는 http://badlogicgames.com/forum/viewtopic.php?f=11&t=18368과 매우 비슷하게 들립니다. 제안 된 3 가지 제안 (특히 # 3) –