ue4安卓打包

文章目录
  1. 1. ue4安卓预制环境
    1. 1.1. 支持的最低GPU

ue4安卓预制环境

硬件要求

支持的最低GPU

自4.25版起,以下GPU满足ES3.1的上述要求:

  • Adreno 4xx
  • Mali T6xx和更高版本
  • Mali G71和更高版本
  • PowerVR Rogue G6100

下载安装安装开发SDK

https://developer.nvidia.com/codeworks-android-archive

选择 CodeWorks-1R7-windows_b166.exe 版本来实现

image-20210707111300230

创建好的服务

image-20210707103723169

配置安卓服务

image-20210707103812966

设置层级为安卓

image-20210707103855145

安装安卓sdk

image-20210707124854167

ERROR: Android toolchain NDK r15c not supported; please use NDK r21 to NDK r23 (NDK r21b recommended)

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)): Z:\app\src\main\java\com\epicgames\ue4\GameActivity.java:3531: ����: �Ҳ�������
UATHelper: Packaging (Android (ETC2)): powerManager.addThermalStatusListener(getMainExecutor(), new PowerManager.OnThermalStatusChangedListener() {
UATHelper: Packaging (Android (ETC2)): 32 actionable tasks: 3 executed, 29 up-to-date
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)): FAILURE: Build failed with an exception.
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)): * 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)): * Get more help at https://help.gradle.org
UATHelper: Packaging (Android (ETC2)): BUILD FAILED in 8s

需要安装Android_studio同时安装sdk

image-20210707161238758