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.NoClassDefFoundError: org/robovm/apple/foundation/NSObject$Handle #120

Open
Ashwani270292 opened this issue Jun 20, 2016 · 3 comments

Comments

@Ashwani270292
Copy link

Ashwani270292 commented Jun 20, 2016

I am getting this error when i am trying to show google banner ads using robopods.

i tried clearing my cache and building it again but still i am getting the same issue.

java.lang.NoClassDefFoundError: org/robovm/apple/foundation/NSObject$Handle
at org.robovm.pods.google.mobileads.GADRequest.(GADRequest.java)
at com.blurpixel.arcpop.IOSLauncher.createRequest(IOSLauncher.java)
at com.blurpixel.arcpop.IOSLauncher.createAndLoadBanner(IOSLauncher.java)
at com.blurpixel.arcpop.IOSLauncher.intializeAds(IOSLauncher.java)
at com.blurpixel.arcpop.IOSLauncher.showAds(IOSLauncher.java)
at com.blurpixel.arcpop.Menu.show(Menu.java)
at com.badlogic.gdx.Game.setScreen(Game.java)
at com.blurpixel.arcpop.GameClass.create(GameClass.java)
at com.badlogic.gdx.backends.iosrobovm.IOSGraphics.draw(IOSGraphics.java)
at com.badlogic.gdx.backends.iosrobovm.IOSGraphics$1.draw(IOSGraphics.java)
at com.badlogic.gdx.backends.iosrobovm.IOSGraphics$1.$cb$drawRect$(IOSGraphics.java)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java)
at com.blurpixel.arcpop.IOSLauncher.main(IOSLauncher.java)

@manuelbua
Copy link

I'm also facing the same problem: i already responded in the other issue but i'll put it here as well so this might get more attention.

i'm using mobidevelop's fork of robovm, that's it robovm-2.1.0, but since the version bump was made to avoid collisions i'm pretty confident that the bindings are the same as the original robovm-1.8. Quoting what @BlueRiverInteractive said in the other issue:

NSObject$Handle has been introduced in 1.9.0. Make sure that you clear your robovm cache and build everything again. You can also try to use RoboVM 1.9.1-SNAPSHOT instead of stable.

Are we out of luck? Is there something we can do to make it work?

@Ashwani270292
Copy link
Author

Dont know have been stuck with the same from past 3 days and has read thousands of blogs at BadLogicGames and github and stackoverflow and what not....still at the same position....need some serious help with this thing.

@hateftad
Copy link

hateftad commented Jul 1, 2016

Hey guys, i solved this by using these pods https://github.com/florianf/robovm-robopods and clearing all the caches. Not sure which ones did it, but it works now.

I cleared everything in .m2 and in .robovm and .robovm-sdk and reimported my project. i.e. did a full rebuild.

also this might have helped as well
http://www.badlogicgames.com/forum/viewtopic.php?f=11&t=22856

also do not use the robovm plugin to build, use the command line

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