Closed LB-KacperKapusta closed 7 months ago
Currently we do not test building android on linux, we test building android on windows. We should look into this, perhaps have a nightly build of android on linux.
This is no longer an issue, the android setup was overhauled since this issue was created.
Describe the bug Building the Android project using Linux's terminal fails with the following error:
It has been verified that the same error occurs with and without unity build enabled. Note that Android instructions are only available for Windows and the commands have been adjusted to work on Linux. Please refer to the attached log and screenshot for more information.
Prerequisites
In this test the following settings have been used:
Steps to reproduce
keytool -genkey -keystore $O3DE_ANDROID_SIGNCONFIG_FILE -storepass $O3DE_ANDROID_SIGNCONFIG_STORE_PASSWORD -alias $O3DE_ANDROID_SIGNCONFIG_KEY_ALIAS -keypass $O3DE_ANDROID_SIGNCONFIG_KEY_PASSWORD -keyalg RSA -keysize $O3DE_ANDROID_SIGNCONFIG_KEY_SIZE -validity $O3DE_ANDROID_SIGNCONFIG_VALIDITY_DAYS -dname "cn=DefaultProject, ou=o3de, o=LF, c=US"
bash $O3DE_ENGINE_PATH/python/python.sh $O3DE_ENGINE_PATH/cmake/Tools/Platform/Android/generate_android_project.py --engine-root $O3DE_ENGINE_PATH --project-path $O3DE_PROJECT_PATH --build-dir $O3DE_BUILD_ROOT/android --third-party-path ~/.o3de/3rdParty --android-sdk-path $O3DE_ANDROID_SDK_PATH --android-ndk-version $O3DE_ANDROID_NDK_VERSION --android-sdk-platform $O3DE_ANDROID_SDK_API_LEVEL --enable-unity-build --include-apk-assets --asset-mode $O3DE_ANDROID_ASSET_MODE --signconfig-store-file $O3DE_ANDROID_SIGNCONFIG_FILE --signconfig-store-password $O3DE_ANDROID_SIGNCONFIG_STORE_PASSWORD --signconfig-key-alias $O3DE_ANDROID_SIGNCONFIG_KEY_ALIAS --signconfig-key-password $O3DE_ANDROID_SIGNCONFIG_KEY_PASSWORD
cd $O3DE_BUILD_ROOT/android
./gradlew assembleProfile
Expected behavior Building finishes successfully.
Actual behavior Building fails.
Screenshots/Video
Found in Branch Development (483c154)
Commit ID from o3de/o3de Repository 483c154
Desktop/Device:
Additional context AndroidLinuxError.txt