3
我一直在試圖運行一個libgdx android項目,但它只是不會以任何方式工作。 其顯示: ERROR/AndroidRuntime(5502):java.lang.NoClassDefFoundError:com.badlogic.gdx.graphics.g2d.stbtt.TrueTypeFontFactoryjava.lang.NoClassDefFoundError在Libgdx中使用TrueTypeFontFactory for android
我已經使用libgdx延伸的GDX-STB-truetype.jar庫來顯示TTF字體。 我的項目結構是這樣的:
共同的項目: 包括GDX-STB-truetype.jar和GDX-STB-TrueType的natives.jar作爲參考庫
的Android項目: 引用的項目:公共工程
桌面項目: 引用的項目:公共工程
它運行在桌面上的項目很大,但不能在Android上運行它。
請幫我這個。 我現在試了近2天,對我來說非常緊迫。 謝謝你們想幫忙的人。
[請看這裏](http://stackoverflow.com/a/9833655/420015) – adneal 2012-03-30 22:33:33