# Build errors on a previously working sketch

**URL:** https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784
**Category:** Processing for Android
**Created:** [October 18, 2019, 9:59pm UTC](https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784 "2019-10-18T21:59:44Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![F53](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/f53/32/7118_2.png) [@F53](https://discourse.processing.org/u/F53)
#### Post date: [October 20, 2019, 6:59pm UTC](https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784/7 "2019-10-20T18:59:08Z")

</div>

I may have figured something out.  
After exporting the project to android studio and doing the usual fixes required following that, I got this error:  
`Cannot fit requested classes in a single dex file (# methods: 68587 > 65536)`  
and somewhere else in the errors this:  
`The number of method references in a .dex file cannot exceed 64K.`

the solution to this normally according to [this stackoverflow](https://stackoverflow.com/questions/36785014/the-number-of-method-references-in-a-dex-file-cannot-exceed-64k-api-17) is to add ` multiDexEnabled true` in `build.gradle`

This worked but I want to continue working in processing for now.  
I will mark this as a solution and start a new topic for that.

---

_[View the full topic](https://discourse.processing.org/t/build-errors-on-a-previously-working-sketch/14784)._
