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.NoSuchMethodError: org.robovm.apple.coregraphics.CGRect.getSize() robovm #2652

Closed
animvs opened this issue Dec 17, 2014 · 3 comments

Comments

@animvs
Copy link

animvs commented Dec 17, 2014

I'm unable to build iOS with libgdx / robovm. The application compiles ok, but im receiving this error during its startup:

java.lang.NoSuchMethodError: org.robovm.apple.coregraphics.CGRect.getSize()Lorg/robovm/apple/coregraphics/CGSize;
at com.badlogic.gdx.backends.iosrobovm.IOSApplication.getBounds(IOSApplication.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.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 br.com.animvs.ants.ios.AntsIOS.main(AntsIOS.java)

Versions:

  • robovm: 1.0.0-beta-01
  • iOS Simulator: 8.0
  • libgdx: "1.5.1-SNAPSHOT" and "1.4.1"

Any help would be greatly appreciated.

@Tom-Ski
Copy link
Member

Tom-Ski commented Dec 17, 2014

If you want to run the LibGDX snapshots you should use the roboVM snapshots also, as that is what we build against for snapshots.

In 1.0.0-beta-01, the method getSize is not available in CGRect, in the latest snapshots (1.0.0-SNAPSHOT) it is.

@Tom-Ski Tom-Ski closed this as completed Dec 17, 2014
@animvs
Copy link
Author

animvs commented Dec 17, 2014

Thanks for the info. Please correct this information on libgdx web-site (http://libgdx.badlogicgames.com/versions.html) which states that robovm version '1.0.0-beta-01' would be enough for libgdx '1.5.1-SNAPSHOT'.

@badlogic
Copy link
Member

Just fixed this, you can build against 1.0.0-beta-01 or the snapshot.
On Dec 17, 2014 11:40 PM, "Animvs Entertainments" notifications@github.com
wrote:

I found the answer. Currently, robovm '1.0.0-SNAPSHOT' is required to
build against libgdx '1.5.1-SNAPSHOT'.

More info on this issue: #2652
#2652


Reply to this email directly or view it on GitHub
#2652 (comment).

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

3 participants