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

Are there any help for compiling Android App? #205

Open
Darling-Lee opened this issue Jun 9, 2023 · 1 comment
Open

Are there any help for compiling Android App? #205

Darling-Lee opened this issue Jun 9, 2023 · 1 comment

Comments

@Darling-Lee
Copy link

As the title suggests,I would like to compile an Android app but have not found any relevant help. Please provide some assistance.

@kroll-j
Copy link

kroll-j commented Aug 27, 2023

I installed android studio first. https://developer.android.com/studio
The Android build scripts are in mobile/Builds/Android (builddebug.sh, buildrelease.sh).
Run fixup.sh once before building, which copies some required media files.
I found I needed to remove some entries from CMakeLists.txt first: #214
To generate a signing key, I roughly followed this: https://blog.codemagic.io/the-simple-guide-to-android-code-signing/
The build scripts expect the key in $HOME/.android/sonouploadnew.jks so you would do something like
keytool -genkey -v -keystore ~/.android/sonouploadnew.jks -storetype JKS -keyalg RSA -keysize 2048 -validity 10000 -alias SOME_ALIAS
Then, sonoupload_keystore_password=YOURKEYSTOREPASSWORD sonoupload_key_password=YOURKEYPASSWORD sonoupload_key=SOME_ALIAS ./builddebug.sh should generate your apk. It will end up in ./app/build/outputs/apk/debug_/debug/app-debug_-debug.apk
It might be possible to get around the signing somehow, if you only want to test your apk locally. New to Android development myself.

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