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

Compiling for Android #4

Closed
ghost opened this issue Jan 31, 2019 · 10 comments
Closed

Compiling for Android #4

ghost opened this issue Jan 31, 2019 · 10 comments

Comments

@ghost
Copy link

ghost commented Jan 31, 2019

I tried several times with different versions of the required tools to compile the godot source code so I got a release and debug apk. I succeed the compiling, but the result gives me a way smaller file than the original. Also when I exported my android app, on startup I got short a black screen and than the app crashed.

If you have experience with this issue could you tell me how to fix it. Otherwise (worst case) could you compile this (I don't mind in what godot version you compile it, I'm flexible)?

@Shin-NiL
Copy link
Owner

Are you able to compile the Android template without this module?

@ghost
Copy link
Author

ghost commented Jan 31, 2019

I'm able to compile it but this also gives a much smaller file than the original one godot has in Godot\templates\3.0.6.stable. So I know it isn't your module his fault. But I'm desperate, I asked the godot community on discord but got no replies. Also another guy from 2 years ago with the same issue didn't replied back, so you are my last hope.

@Shin-NiL
Copy link
Owner

Shin-NiL commented Jan 31, 2019

Are both (release and debug) apk the same size? What size is "small"?
Are you following these docs?

@ghost
Copy link
Author

ghost commented Jan 31, 2019

I fixed the crash issue, I uninstalled all my android studio related files and reinstalled it. Now I'm able to compile the template with and without your module, and the exported app doesn't crash. The only problem now remains that the textshare function doesn't got triggered somehow. But first I will search to solve this new issue at my own. When my app crashed the template files sizes were 805 kB (debug) and 18 856 kB (release). Now they are 12 815 kB (debug) and 10 072 kB (release).

@ghost
Copy link
Author

ghost commented Feb 1, 2019

I tried today the whole day (with debugging enabled, armv7, armv8, more unusefull android stuff installed, etc) but I still couldn't let it work, I switched over to your demo godot share project. So I was sure it wasn't something about my code. But sadly I couldn't even let this work. So I guess I'm not able to compile those templates at my own (atm).

I saw you had a compiled templates available on your blog (heyzap). But reading the comments, this is a bit outdated bcs you only continue with admod. If I had a working template example I could try to replicate it and so I know my compiling process is right (working). So my only option now is asking you for compiling those templates. I would be very grateful to you.

@Shin-NiL
Copy link
Owner

Shin-NiL commented Feb 2, 2019

Which modules do you need in your template? Just this one?

@ghost
Copy link
Author

ghost commented Feb 2, 2019

Just this one. As soon I got those working templates I'm gonna try to compile my source again to get the same templates as the one you gonna sent me. So I am able to compile it myself in the future.

@Shin-NiL
Copy link
Owner

Shin-NiL commented Feb 4, 2019

I've added the compiled template here.

@ghost
Copy link
Author

ghost commented Feb 4, 2019

Thank you, this works. I'm able to share within my app now.
And also thank you for your effort and time.

@Shin-NiL
Copy link
Owner

Shin-NiL commented Feb 4, 2019

Nice, you're welcome.

@Shin-NiL Shin-NiL closed this as completed Feb 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant