Packaging for Android throws errors "redefinition of enumerator 'AMOTION_EVENT_*'"

Hi there,

I have a C++ project, am using UE 4.7.2 from GitHub and just installed the newest Tegra Android Development Pack ( tadp-4.0r1-windows). I want to package a development build for a Samsung Galaxy Tab 2 with Android 4.0.3 (Ice Cream Sandwich) running.

In Project Settings > Platforms > Android I set Minimum SDK Version to 14. My Android SDK settings are the following:

When packaging the Android Development build, I get multiple errors or the sort D:\UE4\Engine\Source\Runtime\Core\Public\Android\AndroidInputInterface.h(18,2) : error: redefinition of enumerator 'AMOTION_EVENT_AXIS_X' and others. The full build log is [here][2].

I already did a rebuild of the UE4 solution and of my project. What can I do?

The solution was to change the NDK API Level in the Android SDK Project Settings. I changed it to android-19.

I thought setting it to android-14 would be correct as I want the game to be able to run on Android 4.0.3 Ice Cream Sandwich, which, according to the API level list, is number 14. Using 19 (KitKat), my game runs on Android 4.0.3 just well. I don’t know why. I guess I am misunderstanding something. If someone wants to shed some light on this, he is very welcome :slight_smile: