-
-
Notifications
You must be signed in to change notification settings - Fork 20.3k
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
Android Export : 'Use Custom Build' option DOES NOT USE 'Custom Template' setttings, for android_debug.apk and android_release.apk #43817
Comments
When you use a custom Android build, you won't be using pre-built APK files as they will be built during the export process (using Gradle). Therefore, the Custom Template section simply can't be made to work in this case. Now, I wonder what we should do:
|
I'm not all that familiar with AAR files, but couldn't you dynamically generate suitable AAR files from the custom apk templates? |
@ginobean At build time, the |
Documentation should be more clear about this. There is no mention that you can't mix android build templates with custom apks |
@kristijandraca Feel free to open a pull request to update the documentation 🙂 |
Hi, I have a Godot Android project (Godot 3.3.2.stable) with NativeLib and some plugins. I was about to open a new issue. If I understand correctly, does this issue mean that you can't use script encryption and plugins together? Thanks in advance |
@serogbp try to build a custom export template for debug and release, and instead of using them, just replace android/build/libs aar files with ones that you generated with custom export. |
Thank you so much @kristijandraca, it worked! |
Thank you so much @kristijandraca. I have been struggling with this for weeks and it was the only thing keeping me from releasing my app. Thank you, thank you, thank you. |
I believe the mentioned issue exists in 3.4 stable as well, since I've been trying to get it to work as well. Also thank you @kristijandraca . Your solution worked for me as well! |
@randazzle Feel free to open a pull request to update the documentation 🙂 |
THANK YOU!!! |
|
Godot version:
3.2.3.stable
OS/device including version:
Linux, Android, GLES2.
Issue description:
I enabled the Android export option: 'Use Custom Build'. I also specified custom templates, for both the debug and release versions, as I wanted to use script encryption.
When I built and deployed the resulting app, on my Android device, it was UNABLE to read the encrypted scripts.
As a check, I unset the 'Use Custom Build' option only, and then was able to run my app fine, which indicates that the custom templates I had built, to use scrip encryption, were working fine.
Looking into this matter, it looks like the custom build option, instead of using the custom build templates (<custom_location>/android_debug.apk and <custom_location>/android_release.apk), were actually using .aar files from
the project's local
android/build/libs/debug/godot-lib.debug.aar
and android/build/libs/release/godot-lib.release.aar
As a further test and workaround, I copied my custom built godot engine's .aar files (which incorporated the script encryption) to the aforementioned locations, and was able to get my app to run successfully..
Ideally, the 'Use Custom Build' option should be able to pick up the custom templates and use them, if they are specified.
As it is now, the combo of 'Use Combo Build' and custom templates, for Android export, doesn't really work as one would expect..
The text was updated successfully, but these errors were encountered: