# Packaging for Android throws errors "redefinition of enumerator 'AMOTION\_EVENT\_\*'"

**URL:** <https://forums.unrealengine.com/t/packaging-for-android-throws-errors-redefinition-of-enumerator-amotion-event/310211>\
**Category:** Mobile\
**Tags:** unreal-engine, Android, Packaging, question\
**Created:** [March 9, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/packaging-for-android-throws-errors-redefinition-of-enumerator-amotion-event/310211 "2015-03-09T22:36:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![trutty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trutty](https://forums.unrealengine.com/u/trutty)\
**Post date:** [March 9, 2015, 10:36pm UTC](https://forums.unrealengine.com/t/packaging-for-android-throws-errors-redefinition-of-enumerator-amotion-event/310211/1 "2015-03-09T22:36:55Z")

</div>

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:

 ![33353-settings_androidsdk.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/8/62868cb44408f9ea096a2c802369d431efd31b5e.jpeg)

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?

---

<div class="post-metadata">

**Author:** ![trutty](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@trutty](https://forums.unrealengine.com/u/trutty)\
**Post date:** [March 10, 2015, 12:30am UTC](https://forums.unrealengine.com/t/packaging-for-android-throws-errors-redefinition-of-enumerator-amotion-event/310211/2 "2015-03-10T00:30:01Z")

</div>

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](https://source.android.com/source/build-numbers.html), 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 🙂
