# Error related to merging xml files when trying to run sketch on emultaor or device

**URL:** <https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092>\
**Category:** Processing for Android\
**Created:** [May 14, 2021, 3:49am UTC](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092 "2021-05-14T03:49:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![katesfb](https://avatars.discourse-cdn.com/v4/letter/k/57b2e6/32.png) [@katesfb](https://discourse.processing.org/u/katesfb)\
**Post date:** [May 14, 2021, 3:49am UTC](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092/1 "2021-05-14T03:49:03Z")

</div>

HI,  
I recently installed android mode and ran a test sketch which seems to run fine however i then added the emulator (ARM version) and now when i try to run a sketch on the emulator or on a device i get the following initial error (followed by lots of gradle stuff):

```auto
> Task :app:processDebugMainManifest FAILED
/tmp/android169680983177640219sketch/app/src/main/AndroidManifest.xml:5:9-10:20 Error:
	Missing 'name' key attribute on element activity at AndroidManifest.xml:5:9-10:20
/tmp/android169680983177640219sketch/app/src/main/AndroidManifest.xml Error:
	Validation failed, exiting

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

> Task :app:mergeDebugResources

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugMainManifest'.
> Manifest merger failed with multiple errors, see logs

```

Can anybody explain what is going on here or should i just uninstall the emulator image - i dont really need it.

Any help is much appreciated.

Cheers.

---

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [May 14, 2021, 4:27am UTC](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092/2 "2021-05-14T04:27:58Z")

</div>

this is the files need for android mode

 ![Untitled 179](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/8/8fe1b325ee854a6a1a2c03ea0d424c28df01aedf.jpeg)

> [@katesfb](#):
>
> should i just uninstall the emulator image - i dont really need it.

the emulator makes the widows too slow and consuming the ram emulating using the device much faster

---

<div class="post-metadata">

**Author:** ![Rupesh\_Kumar](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/rupesh_kumar/32/12638_2.png) [@Rupesh\_Kumar](https://discourse.processing.org/u/Rupesh_Kumar)\
**Post date:** [May 14, 2021, 2:12pm UTC](https://discourse.processing.org/t/error-related-to-merging-xml-files-when-trying-to-run-sketch-on-emultaor-or-device/30092/3 "2021-05-14T14:12:41Z")

</div>

@katesfb Can you share the details of the test sketch and the steps in detail to reproduce the issue? Also, if you can share Both the AndroidManifest.xml files from the following path:  
`SketchFolder\AndroidManifest.xml`  
`SketchFolder\android\app\src\main\AndroidManifest.xml` (android folder under sketch folder will be generated after exporting project by **File → Export Android Project** )

I don’t think the issue is related to the emulator process as the error comes during Gradle task. Are you able to export debug APK? You can do that by opening the command prompt at `SketchFolder/android/` and running `gradle assembleDebug`.

Regards,  
Rupesh
