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

Fail To Run In Android 6,7 #9

Closed
nemesis567 opened this issue Jul 23, 2019 · 8 comments
Closed

Fail To Run In Android 6,7 #9

nemesis567 opened this issue Jul 23, 2019 · 8 comments

Comments

@nemesis567
Copy link

Godot version:
3.1-stable

OS/device including version:
Android 6, 7
Compiled on Windows 10

Issue description:
ATAL EXCEPTION: GLThread 557 Process: com.murderintheshadows.aelia, PID: 9604 java.lang.ClassNotFoundException: Didn't find class "org/godotengine/godot/GodotShare" on path: DexPathList[[zip file "/data/app/com.murderintheshadows.aelia-1/base.apk"],nativeLibraryDirectories=[/data/app/com.murderintheshadows.aelia-1/lib/arm64, /data/app/com.murderintheshadows.aelia-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] 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:311) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1481) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1253) Suppressed: java.lang.ClassNotFoundException: Didn't find class "org/godotengine/godot/GodotFacebook" on path: DexPathList[[zip file "/data/app/com.murderintheshadows.aelia-1/base.apk"],nativeLibraryDirectories=[/data/app/com.murderintheshadows.aelia-1/lib/arm64, /data/app/com.murderintheshadows.aelia-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]] ... 7 more

Steps to reproduce:
You can download the project, compile, export and try to run on android 6, app crashes with error above.
This runs fine on Android 8+

@Shin-NiL
Copy link
Owner

Didn't find class "org/godotengine/godot/GodotShare"

That's the issue, double check if the custom template is set on the Android export options (debug & release). If you have compiled the template, something must be wrong there too.

@nemesis567
Copy link
Author

It is set, like I said this works properly on android 8+, just doesn't work on 6 and 7.

@Shin-NiL
Copy link
Owner

I only have Android 7 and it's working fine too. Does the app work without this module?

@nemesis567
Copy link
Author

Yes, it does.

@nemesis567
Copy link
Author

screencapture-play-google-apps-publish-2019-07-23-20_02_18

@Shin-NiL
Copy link
Owner

Shin-NiL commented Jul 24, 2019

Are you compiling the templates or using precompiled ones? It looks like the module was not found in the template file (arm64). I have no Idea what could be the cause.

@nemesis567
Copy link
Author

I've fixed this by cleaning the solution, rebuilding and for release build using ./gradlew assembleRelease instead of build. Changing the project name and full path to both sdk and engine to not contain spaces assisted with being able to build with assembleRelease. It was also important to add Android 6 and 7 SDKs to the android SDK, despite godot saying it loads the necessary dependencies automatically, I don't think it was happening.

@Shin-NiL
Copy link
Owner

Alright, I'll close the issue as it seems not to be an error of this module.

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