robovm / robovm-robopods

64 stars 86 forks source link

java.lang.NoClassDefFoundError: org/robovm/apple/foundation/NSObject$Handle #120

Open Ashwani270292 opened 8 years ago

Ashwani270292 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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 commented 8 years ago

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