Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.ClassCastException when using proguard #86

Open
bangive opened this issue Feb 13, 2016 · 1 comment
Open

java.lang.ClassCastException when using proguard #86

bangive opened this issue Feb 13, 2016 · 1 comment

Comments

@bangive
Copy link

bangive commented Feb 13, 2016

I enable proguard and install app on device using the following command:
gradlew android:installRelease android:run
I have this error from adb log:
E/AndroidRuntime( 8800): java.lang.ClassCastException: com.badlogic.gdx.utils.JsonValue cannot be cast to com.uwsoft.editor.renderer.data.SceneVO E/AndroidRuntime( 8800): at com.uwsoft.editor.renderer.resources.ResourceManager.initAllResources(SourceFile:96) E/AndroidRuntime( 8800): at com.uwsoft.editor.renderer.SceneLoader.<init>(SourceFile:63) E/AndroidRuntime( 8800): at com.example.mygame.r.create(SourceFile:15) E/AndroidRuntime( 8800): at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(SourceFile:280) E/AndroidRuntime( 8800): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1550) E/AndroidRuntime( 8800): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1278)

@bangive bangive changed the title Error when using proguard java.lang.ClassCastException when using proguard Feb 13, 2016
@azakhary
Copy link
Contributor

You should make sure the VO classes are all excluded from progurad. mark them as "keep" in proguard.cfg. It's about everyjthing in com.uwsoft.editor.renderer.data.**

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants