# Cannot build empty sketch Android Processing 4

**URL:** <https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948>\
**Category:** Processing for Android\
**Created:** [May 9, 2023, 12:14am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948 "2023-05-09T00:14:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 9, 2023, 12:14am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/1 "2023-05-09T00:14:56Z")

</div>

following error occurs, no idea how to fix

```auto
ERROR:D8: Cannot fit requested classes in a single dex file (# methods: 131430 > 65536)
com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: 
The number of method references in a .dex file cannot exceed 64K.

```

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [May 9, 2023, 9:06am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/2 "2023-05-09T09:06:47Z")

</div>

Hi @paulgoux,

You can checkout this old thread:

> [@Error compiling because "The number of method references in a .dex file cannot exceed 64K."](https://discourse.processing.org/t/error-compiling-because-the-number-of-method-references-in-a-dex-file-cannot-exceed-64k/40126):
>
> Hi there. I have this project which I use for some leds: import java.io.File; import android.os.Environment; import android.Manifest; import android.os.Build; import processing.core.PConstants; PImage img1; PImage img2; PImage img3; PImage img4; PImage img5; PImage img6; PImage img7; PImage img8; PImage img9; PImage img10; PImage img11; String typing = ""; String saved = ""; boolean sett = false; String folder\_name = "Tiraled"; String text\_file = "mac.txt"; int si = 0; int igri = 0; String…

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 9, 2023, 2:04pm UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/3 "2023-05-09T14:04:22Z")

</div>

I’ve read the instructions and it’s a bit out of my depth I was hoping Id missed something simple and that android would run out of the box so to say.

---

<div class="post-metadata">

**Author:** ![paulgoux](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@paulgoux](https://discourse.processing.org/u/paulgoux)\
**Post date:** [May 14, 2023, 7:14am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/6 "2023-05-14T07:14:31Z")

</div>

the issue is solved with a simple reinstall. I had further issues with the video library which causes issues.

---

<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, 2023, 2:46pm UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/7 "2023-05-14T14:46:00Z")

</div>

> [@paulgoux](#):
>
> video library which causes issues.

Hi

The video library doesn’t work in android mode

---

<div class="post-metadata">

**Author:** ![sableraph](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/sableraph/32/251_2.png) [@sableraph](https://discourse.processing.org/u/sableraph)\
**Post date:** [June 16, 2023, 10:05am UTC](https://discourse.processing.org/t/cannot-build-empty-sketch-android-processing-4/41948/8 "2023-06-16T10:05:32Z")

</div>

FYI: there is a version of the video library that should work on Android thanks to @kjhollen 👍

> **[GitHub - kjhollen/processing-video-android: Processing Video implementation...](https://github.com/kjhollen/processing-video-android)**
>
> Processing Video implementation for Android. Contribute to kjhollen/processing-video-android development by creating an account on GitHub.
