How can i add 'java.awt.geom' class in android?

浪尽此生 提交于 2019-12-11 16:07:11

问题


I am making a game in LibGDX. When i run in libgdx-desktop, than it works fine. But when i run it in libgex-android than i get this error:

ERROR: Could not find class 'java.awt.geom.Line2D$Float[]', referenced from method com.ia.Entity.Player.hit

So libgdx-android can't seem to find line2d class. Any idea how can i fix this? Is there way i can just add a jar file or some thing in my libgdx-android project?

I really want to use 'java.awt.geom.line2d.flot[]' in android, but if answer is no, than what can i use instead?


回答1:


If I'm not mistaken, java.awt is not supported in android. However, I'm pretty sure libgdx has a geom class or something of that nature themselves.



来源:https://stackoverflow.com/questions/21075543/how-can-i-add-java-awt-geom-class-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!