标题说明了一切。
我正在用 libgdx 实现一个游戏,我想在 iOS 中实现 facebook sdk。我正在使用 robovm 绑定。
见下文!!
游戏编译并被推送到设备,但是当游戏开始时它失败并显示以下消息:
java.lang.ExceptionInInitializerError
at org.robovm.bindings.facebook.manager.FacebookManager.didBecomeActive(FacebookManager.java)
at com.fcouceiro.flydive.IOSLauncher.didBecomeActive(IOSLauncher.java)
at org.robovm.apple.uikit.UIApplicationDelegate$ObjCProxy.$cb$applicationDidBecomeActive$(Unknown Source)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java)
at com.fcouceiro.flydive.IOSLauncher.main(IOSLauncher.java)
Caused by: org.robovm.objc.ObjCClassNotFoundException: FBAppCall
at org.robovm.objc.ObjCClass.getByType(ObjCClass.java)
at org.robovm.bindings.facebook.FBAppCall.<clinit>(FBAppCall.java)
... 6 more
我尝试将 binging 包含为 .jar 和框架。有任何想法吗?
编辑:
我设法克服了这个错误,现在这是新的:):
java.lang.NoSuchMethodError: org.robovm.apple.uikit.UIColor.black()Lorg/robovm/apple/uikit/UIColor;
at org.robovm.bindings.facebook.manager.sample.LoadingOverlay.<init>(LoadingOverlay.java)
at com.fcouceiro.flydive.IOSLauncher.setupFacebook(IOSLauncher.java)
at com.fcouceiro.flydive.IOSLauncher.createApplication(IOSLauncher.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java)
at com.fcouceiro.flydive.IOSLauncher.didFinishLaunching(IOSLauncher.java)
at org.robovm.apple.uikit.UIApplicationDelegate$ObjCProxy.$cb$application$didFinishLaunchingWithOptions$(Unknown Source)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java)
at com.fcouceiro.flydive.IOSLauncher.main(IOSLauncher.java)
提前致谢