-
Notifications
You must be signed in to change notification settings - Fork 85
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 #55
Comments
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. |
Thanks! It worked when clearing the cache. I'm getting a new exception now though, and I have tried googling this, but cannot find anything. The exception is: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'When |allowsSignInWithWebView| is enabled, uiDelegate must either be a |UIViewController| or implement the |signIn:presentViewController:| and |signIn:dismissViewController:| methods from |GIDSignInUIDelegate|.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000114186f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000114982deb objc_exception_throw + 48
2 CoreFoundation 0x0000000114186e7d +[NSException raise:format:] + 205
3 FFGame 0x000000010bd63f93 +[GTLQueryPlus(Internal) queryForSettingsUpdateWithObject:settingId:] + 31826
4 FFGame 0x000000010bd60b90 +[GTLQueryPlus(Internal) queryForSettingsUpdateWithObject:settingId:] + 18511
5 FFGame 0x000000010beec172 -[GPGManager signInWithClientID:silently:withExtraScopes:] + 731
6 FFGame 0x000000010bbc4471 [J]org.robovm.pods.google.games.GPGManager.$m$signInWithClientID$silently$(Lorg/robovm/pods/google/games/GPGManager;Lorg/robovm/objc/Selector;Ljava/lang/String;Z)Z + 187
7 FFGame 0x000000010bbc16df [J]org.robovm.pods.google.games.GPGManager.signIn(Ljava/lang/String;Z)Z + 100
7 FFGame 0x000000010bbc16df [J]org.robovm.pods.google.games.GPGManager.signIn(Ljava/lang/String;Z)Z + 100 My class implements "GIDSignInUIDelegate" and the methods "presentViewController" and "dismissViewController"... but they are empty and I don't know if I'm supposed to do anything in those? Sorry for being a noob, but if someone knows how to fix this I would be very grateful :) UIApplication.getSharedApplication().getKeyWindow().getRootViewController(); but I'm not sure how that helps me EDIT: Got it to work now, after setting GIDSignIn.getSharedInstance().setUiDelegate(this); on didBecomeActive() |
This helped me out quite a bit but I am still not able to get the webview to show up upon signing in. It still switches to google+ or the google app, which I know will cause issues. Some info about my setup: My IOSLauncher class implements "GIDSignInUIDelegate" and I have "GIDSignIn.getSharedInstance().setUiDelegate(this);" placed in didFinishLaunching (Note: I tried putting this in a bunch of different location with no change in the results). I can sign in just fine, but that webview is not showing up. |
I accidentely deleted my code I had (in a VM) so what I had working back then, is not working for me now. Though I don't get any errors, but I don't get any sign in options either :( I have an issue here about that, not sure if it's my code or something that has changed. Anyway, you could try set this GIDSignIn.getSharedInstance().setAllowsSignInWithWebView(true); |
I am still getting this error it tried clearing my caches and everything. and i am using 2.1.0 version of robovm and 1.9 version of libgdx |
I'm encountering the same problem as @Ashwani270292: for instance, i'm using mobidevelop's fork of robovm, that's it
So, are we out of luck? Is there something we can do to make it work? |
After updating to robovm version 2.3.18 (mobivm) and libgdx 1.10.0 I get the following error when starting the app. Same exception but for another class. Someone had that before? :
|
I'm having the same problem on 2.3.19 and 1.11.0 |
Hi, im having the same, Did you manage to solve the problem? |
With latest snapshot 1.9.1 (and 1.9.0) I'm getting this error when loading ads:
This is my code which have worked with previous releases:
The line which it breaks on is:
I'm using latest LibGDX 1.7.1 with RoboVM 1.9.0
The text was updated successfully, but these errors were encountered: