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

Game crashes on startup #13

Open
maxpilotto opened this issue Oct 7, 2018 · 1 comment
Open

Game crashes on startup #13

maxpilotto opened this issue Oct 7, 2018 · 1 comment

Comments

@maxpilotto
Copy link

I've wrote a simple demo to check if the module was working but when I launch the game it crashes.
This is the content of the logcat:

java.lang.ClassNotFoundException: Didn't find class "org/godotengine/godot/GodotGooglePlayGameServices" 
on path: DexPathList[[zip file "/data/app/org.godotengine.mygame-2/base.apk"],
nativeLibraryDirectories=[/data/app/org.godotengine.mygame-2/lib/arm, 
/data/app/org.godotengine.mygame-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
 at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
 at org.godotengine.godot.GodotLib.setup(Native Method)
 at org.godotengine.godot.Godot$2.run(Godot.java:299)
 at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1477)
 at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1259)

And this is the code I've attached to my main (and only) scene:

extends Node2D

var gps = null

func _ready():
	if Globals.has_singleton("GodotGooglePlayGameServices"):
		gpgs = Globals.get_singleton("GodotGooglePlayGameServices")
		gpgs.init(get_instance_id())
		gpgs.signIn()

And this is what I've added to the project.godot file

[android]
modules="org/godotengine/godot/GodotGooglePlayGameServices"
@homarox
Copy link

homarox commented Feb 18, 2019

same problem :(

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

2 participants