Download

can't compile UE to Android

Hello,

I can’t compile Unreal Engine to Android.
I download the code again (release branch), run setup.bat and GenerateProjectFiles.bat, after TADP-2.0r8 install and run GenerateProjectFiles.bat.
After I compiled for Development Editor -> Win64 and compiles fine but when I compile for Development Client -> Android (it’s the same for Development -> Android) get these errors:


1>------ Operación Compilar iniciada: proyecto: UE4, configuración: Development_Client Tegra-Android ------
1>  Compiling Native code with NDK API 'android-14'
1>  Performing 3 actions (4 in parallel)
1>  [1/3] clang++.exe Module.Launch.cpp [armv7-es2]
1>  [2/3] clang++.exe Module.Core.1_of_6.cpp [armv7-es2]
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(18,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_X'
1>          AMOTION_EVENT_AXIS_X = 0,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(351,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_X = 0,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(19,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_Y'
1>          AMOTION_EVENT_AXIS_Y = 1,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(352,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_Y = 1,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(20,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_PRESSURE'
1>          AMOTION_EVENT_AXIS_PRESSURE = 2,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(353,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_PRESSURE = 2,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(21,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_SIZE'
1>          AMOTION_EVENT_AXIS_SIZE = 3,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(354,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_SIZE = 3,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(22,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOUCH_MAJOR'
1>          AMOTION_EVENT_AXIS_TOUCH_MAJOR = 4,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(355,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOUCH_MAJOR = 4,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(23,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOUCH_MINOR'
1>          AMOTION_EVENT_AXIS_TOUCH_MINOR = 5,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(356,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOUCH_MINOR = 5,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(24,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOOL_MAJOR'
1>          AMOTION_EVENT_AXIS_TOOL_MAJOR = 6,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(357,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOOL_MAJOR = 6,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(25,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOOL_MINOR'
1>          AMOTION_EVENT_AXIS_TOOL_MINOR = 7,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(358,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOOL_MINOR = 7,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(26,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_ORIENTATION'
1>          AMOTION_EVENT_AXIS_ORIENTATION = 8,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(359,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_ORIENTATION = 8,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(27,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_VSCROLL'
1>          AMOTION_EVENT_AXIS_VSCROLL = 9,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(360,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_VSCROLL = 9,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(28,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HSCROLL'
1>          AMOTION_EVENT_AXIS_HSCROLL = 10,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(361,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HSCROLL = 10,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(29,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_Z'
1>          AMOTION_EVENT_AXIS_Z = 11,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(362,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_Z = 11,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(30,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RX'
1>          AMOTION_EVENT_AXIS_RX = 12,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(363,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RX = 12,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(31,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RY'
1>          AMOTION_EVENT_AXIS_RY = 13,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(364,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RY = 13,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(32,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RZ'
1>          AMOTION_EVENT_AXIS_RZ = 14,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(365,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RZ = 14,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(33,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HAT_X'
1>          AMOTION_EVENT_AXIS_HAT_X = 15,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(366,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HAT_X = 15,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(34,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HAT_Y'
1>          AMOTION_EVENT_AXIS_HAT_Y = 16,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(367,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HAT_Y = 16,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(35,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_LTRIGGER'
1>          AMOTION_EVENT_AXIS_LTRIGGER = 17,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(368,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_LTRIGGER = 17,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Core/Module.Core.1_of_6.cpp:3:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Private\Android\AndroidApplication.cpp:5:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(36,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RTRIGGER'
1>          AMOTION_EVENT_AXIS_RTRIGGER = 18,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(369,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RTRIGGER = 18,
1>      ^
1>EXEC : fatal error : too many errors emitted, stopping now -ferror-limit=]
1>  20 errors generated.
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(18,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_X'
1>          AMOTION_EVENT_AXIS_X = 0,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(351,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_X = 0,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(19,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_Y'
1>          AMOTION_EVENT_AXIS_Y = 1,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(352,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_Y = 1,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(20,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_PRESSURE'
1>          AMOTION_EVENT_AXIS_PRESSURE = 2,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(353,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_PRESSURE = 2,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(21,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_SIZE'
1>          AMOTION_EVENT_AXIS_SIZE = 3,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(354,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_SIZE = 3,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(22,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOUCH_MAJOR'
1>          AMOTION_EVENT_AXIS_TOUCH_MAJOR = 4,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(355,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOUCH_MAJOR = 4,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(23,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOUCH_MINOR'
1>          AMOTION_EVENT_AXIS_TOUCH_MINOR = 5,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(356,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOUCH_MINOR = 5,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(24,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOOL_MAJOR'
1>          AMOTION_EVENT_AXIS_TOOL_MAJOR = 6,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(357,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOOL_MAJOR = 6,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(25,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_TOOL_MINOR'
1>          AMOTION_EVENT_AXIS_TOOL_MINOR = 7,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(358,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_TOOL_MINOR = 7,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(26,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_ORIENTATION'
1>          AMOTION_EVENT_AXIS_ORIENTATION = 8,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(359,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_ORIENTATION = 8,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(27,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_VSCROLL'
1>          AMOTION_EVENT_AXIS_VSCROLL = 9,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(360,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_VSCROLL = 9,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(28,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HSCROLL'
1>          AMOTION_EVENT_AXIS_HSCROLL = 10,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(361,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HSCROLL = 10,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(29,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_Z'
1>          AMOTION_EVENT_AXIS_Z = 11,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(362,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_Z = 11,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(30,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RX'
1>          AMOTION_EVENT_AXIS_RX = 12,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(363,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RX = 12,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(31,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RY'
1>          AMOTION_EVENT_AXIS_RY = 13,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(364,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RY = 13,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(32,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RZ'
1>          AMOTION_EVENT_AXIS_RZ = 14,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(365,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RZ = 14,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(33,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HAT_X'
1>          AMOTION_EVENT_AXIS_HAT_X = 15,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(366,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HAT_X = 15,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(34,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_HAT_Y'
1>          AMOTION_EVENT_AXIS_HAT_Y = 16,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(367,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_HAT_Y = 16,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(35,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_LTRIGGER'
1>          AMOTION_EVENT_AXIS_LTRIGGER = 17,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(368,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_LTRIGGER = 17,
1>      ^
1>  In file included from C:/UnrealEngine4.7/Engine/Intermediate/Build/Android/UE4Client/Development/Launch/Module.Launch.cpp:6:
1>  In file included from C:\UnrealEngine4.7\Engine\Source\Runtime\Launch\Private\Android\LaunchAndroid.cpp:9:
1>C:\UnrealEngine4.7\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(36,1): error : redefinition of enumerator 'AMOTION_EVENT_AXIS_RTRIGGER'
1>          AMOTION_EVENT_AXIS_RTRIGGER = 18,
1>          ^
1>  C:\NVPACK\android-ndk-r9c\platforms\android-14\arch-arm\usr\include\android\input.h(369,4) :  note: previous definition is here
1>      AMOTION_EVENT_AXIS_RTRIGGER = 18,
1>      ^
1>EXEC : fatal error : too many errors emitted, stopping now -ferror-limit=]
1>  20 errors generated.
1>  -------- End Detailed Actions Stats -----------------------------------------------------------
1>ERROR : UBT error : Failed to produce item: C:\UnrealEngine4.7\Engine\Binaries\Android\UE4Client-armv7-es2.so
1>  Cumulative action seconds (8 processors): 0,00 building projects, 19,23 compiling, 0,00 creating app bundles, 0,00 generating debug info, 0,00 linking, 0,00 other
1>  UBT execution time: 30,66 seconds
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.targets(38,5): error MSB3073: El comando "..\..\Build\BatchFiles\Build.bat UE4Client Android Development" salió con el código -1.


Thank you for your help.

you have to include android NDK to your project.

but this should be automatic with GenerateProjectFiles.bat. I am trying to compile the engine, not an own project.

These are the Android project directory, it is this what you mean?

e7a30ccd4ab4587adf3cc629b627ae332b903fc0.png

Set ANDROID_HOME and ANDROID_NDK_ROOT enviroment variables to where they are, system wide or in a command prompt before generating/building your project. Though the Tegra Pack should have set those. Settings in Visual Studio itself are mostly ignored, as the engine has its own tool to build itself with.

Is the same result :(. Variables were created when tapp was installed.

config.png

Im sorry. I should have seen they are set and used, otherwise it wouldn’t have used the android compiler. Though your build uses the wrong NDK api (14 instead of 19), and I have Java 7 and 8 installed.

Im using android-ndk-r10d, that works fine. Might help to unpack android-ndk-r10d along where the nvpack has installed its ndk and update the environment and retry. Regenerate the projects after you changed the environment.

I updated the ndk and jdk but I have the same problem. Still compiled with version 14, how change version 14 by 19?

config.png

Thanks.

You got the environment variables ANDROID_ABI or ANDROID_NATIVE_API_LEVEL or ANDROID_TOOLCHAIN_NAME set anywhere? Or are the INCLUDE and LIB paths setup wrongly? I don’t understand why your build chooses the wrong version, might be helping if try setting/unsetting those, or to search the Engine sources where they are set to build the projects and try to look at why it goes wrong in the source.

“\Engine\Build\Android\Java\project.properties” sets the target api to 19 on my copy.

Yes, the target is 19.


# Project target.
target=android-19

I haven’t defined these variables and I haven’t changed the default configuration that generates the GenerateProjectFiles.bat, just what you can see above :frowning:

I am having similar issue that started happening after I installed API22. How exactly do you force UE4 to build with android-19?

The issues are probably somewhere totally not mentioned in the thread yet. It would be great if someone with good Android knowledge, or an Epic dev, could look at it…

I found you can try changing the API levels in BaseEngine.ini


[/Script/AndroidPlatformEditor.AndroidSDKSettings]
SDKAPILevel=latest
NDKAPILevel=android-19

When I try to build UE4 Development Android this is what I get.


1>------ Build started: Project: UE4, Configuration: Development_Game Tegra-Android ------
1>  Compiling Native code with NDK API 'android-19'
1>  Target is up to date.
1>  
1>  ====3/23/2015 8:50:24 AM====PREPARING TO MAKE APK=================================================================
1>  Building Java with SDK API level 'android-22'
1>  Output .apk file(s) are up to date (dependencies and build settings are up to date)
========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

But when I try to rebuild it, this is what I get instead. Does anyone have an idea what is wrong with Rebuild.bat?


1>------ Rebuild All started: Project: UnrealBuildTool, Configuration: Development Any CPU ------
1>  UnrealBuildTool -> C:\Program Files (x86)\UnrealEngine\Engine\Binaries\DotNET\UnrealBuildTool.exe
2>------ Rebuild All started: Project: UE4, Configuration: Development_Game Tegra-Android ------
2>  \UnrealEngine\Engine\Build\BatchFiles\ was unexpected at this time.
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.MakeFile.targets(43,5): error MSB3073: The command "..\..\Build\BatchFiles\Rebuild.bat UE4Game Android Development" exited with code 255.
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========


Hi all,

I spoke to the Android dev, and he advised that NDK needs to be set to 19, not 14. This is in Project Settings, Android SDK section.

cvax, he said you should try setting SDK to android-19, also.

Thanks, but I tried this too. The “latest” SDK setting is whatever came from github sources. Before replying I already tried “android-19” in there. I didn’t notice any differences in the rebuild process. It keeps complaining about Rebuild.bat.

hi cvax
i had the same problem in my unreal engine 4 build. follow this step you can clear this issues. first this issues occurred for the following reason. you have Cancel any build which is under process. if you cancel build while it is processing and rebuild it means you will get this issues. first you have to delete all the engine data. and re download the engine source file and recompile it. first compile the engine for development editor. and then to development and then to shipping. you will never get this problem again. please don’t cancel any build while it is processing. wait until it gets completed.

Spent a good amount of time doing these steps, redownloading and rebuilding everything… Unfortunately I am seeing exactly the same problem when trying to run Rebuild on Development Android. I did not cancel any builds in the process.

check the variable values in command prompt using the following command echo %JAVA_HOME%, echo %ANDROID_HOME%, echo %ANT_HOME%, echo %NDKROOT%

Hi ALAGARRAJA,

I believe they are all correct.


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\cvax>echo %JAVA_HOME%
C:\NVPACK\jdk1.6.0_45

C:\Users\cvax>echo %ANDROID_HOME%
C:\NVPACK\android-sdk-windows

C:\Users\cvax>echo %ANT_HOME%
C:\NVPACK\apache-ant-1.8.2

C:\Users\cvax>echo %NDKROOT%
C:\NVPACK\android-ndk-r9c

and also please check tha path variable in system evnt. in the path you will find like C:\NVPACK\apache-ant-1.8.2\bin. change this to %ANT_HOME%\bin and restart your system and recompile it and change the mini skd versio to android-19