Download

Unreal4.26.2 can't packaging for Android, even if the project is empty

UATHelper: Packaging (Android (ETC2)):   > Task :downloader_library:bundleLibRuntimeToJarDebug
UATHelper: Packaging (Android (ETC2)):   > Task :permission_library:bundleLibCompileToJarDebug
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   > Task :app:compileDebugJavaWithJavac FAILED
UATHelper: Packaging (Android (ETC2)):   The following annotation processors are not incremental: compiler-1.1.1.jar (android.arch.lifecycle:compiler:1.1.1).
UATHelper: Packaging (Android (ETC2)):   Make sure all annotation processors are incremental to improve your build speed.
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   > Task :permission_library:bundleLibRuntimeToJarDebug
UATHelper: Packaging (Android (ETC2)):   Y:\app\src\main\java\com\epicgames\ue4\GameActivity.java:3217: ����: �Ҳ�������
UATHelper: Packaging (Android (ETC2)):             powerManager.addThermalStatusListener(getMainExecutor(), new PowerManager.OnThermalStatusChangedListener() {
UATHelper: Packaging (Android (ETC2)):                                                                                      ^
UATHelper: Packaging (Android (ETC2)):     ����:   �� OnThermalStatusChangedListener
UATHelper: Packaging (Android (ETC2)):     �: �� PowerManager
UATHelper: Packaging (Android (ETC2)):   ע: ijЩ�����ļ�ʹ�û򸲸����ѹ�ʱ�� API��
UATHelper: Packaging (Android (ETC2)):   ע: �й���ϸ��Ϣ, ��ʹ�� -Xlint:deprecation ���±��롣
UATHelper: Packaging (Android (ETC2)):   1 ������
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   FAILURE: Build failed with an exception.
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   * What went wrong:
UATHelper: Packaging (Android (ETC2)):   Execution failed for task ':app:compileDebugJavaWithJavac'.
UATHelper: Packaging (Android (ETC2)):   > Compilation failed; see the compiler error output for details.
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   52 actionable tasks: 50 executed, 2 up-to-date
UATHelper: Packaging (Android (ETC2)):   * Try:
UATHelper: Packaging (Android (ETC2)):   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ETC2)):   
UATHelper: Packaging (Android (ETC2)):   BUILD FAILED in 25s
UATHelper: Packaging (Android (ETC2)):   ERROR: cmd.exe failed with args /c "D:\MyGits\UE\kong\game0\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
PackagingResults: Error: cmd.exe failed with args /c "D:\MyGits\UE\kong\game0\Intermediate\Android\armv7\gradle\rungradle.bat" :app:assembleDebug
UATHelper: Packaging (Android (ETC2)): Took 28.3920365s to run UnrealBuildTool.exe, ExitCode=6
UATHelper: Packaging (Android (ETC2)): UnrealBuildTool failed. See log for more details. (C:\Users\Administrator\AppData\Roaming\Unreal Engine\AutomationTool\Logs\D+Program+Files+Epic+Games+UE_4.26\UBT-game0-Android-Development.txt)
UATHelper: Packaging (Android (ETC2)): AutomationTool exiting with ExitCode=6 (6)
UATHelper: Packaging (Android (ETC2)): BUILD FAILED
PackagingResults: Error: Unknown Error
  • I used the official recommended configuration:
    “platforms;android-28” “build-tools;28.0.3” “cmake;3.10.2.4988404” “ndk;21.4.7075529”

2021-6-23 re-edit
Finally, I solved the problem :partying_face:
Inadvertently saw the post of @Peemard .
I selected everything above Android 4.3 (Jellybean) API level 18.

Try following the setup guide for android SDK and NDK here Link.
Look at the section “Android SDK and NDK Compatibility” for the required android studio version and NDK.
After setup, use one of the mobile template to build to device for testing.

I am frustrated. :cold_face:I have completed the execution according to the process described in the document, but there is still errors.

I’m glad my post was able to help you! Happy development!