I followed the documentation: https://docs.godotengine.org/en/stable/development/compiling/compiling_with_script_encryption_key.html
Problem: I want to export for android with script encryption. I get same errors as on this page.
ERROR: open_and_parse: Condition [...bla bla...] on Android.
Godot version: 3.2.4.beta1
Exact steps I did:
- Created a key with openssl.
- Executed following commands:
scons -j 6 platform=android target=release android_arch=armv7
scons -j 6 platform=android target=release android_arch=arm64v8
scons platform=android target=release_debug
android_arch=armv7 scons platform=android target=release_debug
android_arch=arm64v8 cd platform/android/java
- Under android export > script, I set the key in the input field and
set export mode to encrypted.
- Under android export > options > Custom Template, I set the debug and
release accordingly to
Then exported to android (and it crashes right after starting the game, it flickers a bit and then crashes). Adb logcat shows same errors as here. Note: it does not crash when exporting normally. Any help?
On the same link (top of the page), it says: Godot is encrypting the scripts during export, but can't read them at runtime. Well, what should I do?