# Android build failure

**URL:** <https://discourse.processing.org/t/android-build-failure/36575>\
**Category:** Processing for Android\
**Created:** [April 24, 2022, 5:19pm UTC](https://discourse.processing.org/t/android-build-failure/36575 "2022-04-24T17:19:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jSdCool](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jsdcool/32/14246_2.png) [@jSdCool](https://discourse.processing.org/u/jSdCool)\
**Post date:** [April 24, 2022, 5:19pm UTC](https://discourse.processing.org/t/android-build-failure/36575/1 "2022-04-24T17:19:26Z")

</div>

after I downloaded the new version of android mode for processing 4 wrote a simple program and when I tries to test it I got

```auto
Exception in thread "Thread-27" java.lang.NoSuchMethodError: 'java.lang.String processing.mode.android.AndroidBuild.preprocess(java.io.File, java.lang.String, processing.mode.java.preproc.PdePreprocessor, boolean)'
	at processing.mode.android.AndroidBuild.createProject(AndroidBuild.java:252)
	at processing.mode.android.AndroidBuild.build(AndroidBuild.java:223)
	at processing.mode.android.AndroidMode.handleRunDevice(AndroidMode.java:276)
	at processing.mode.android.AndroidEditor$16.run(AndroidEditor.java:412)

```

I then deleted all the code in the sketch and tried again and got the same error.

a brief look at the code seems to reveal that this method does not exists  
help

---

<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:** [April 25, 2022, 5:40pm UTC](https://discourse.processing.org/t/android-build-failure/36575/2 "2022-04-25T17:40:50Z")

</div>

Last I remember processing 4 is incompatible with android mode. You have to downgrade to processing 3.

---

<div class="post-metadata">

**Author:** ![jSdCool](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jsdcool/32/14246_2.png) [@jSdCool](https://discourse.processing.org/u/jSdCool)\
**Post date:** [April 25, 2022, 5:59pm UTC](https://discourse.processing.org/t/android-build-failure/36575/3 "2022-04-25T17:59:07Z")

</div>

![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/a/4/a43ad681836c1ff2dc69c776e188d5e2064bbf09.png)

---

<div class="post-metadata">

**Author:** ![PoYo](https://avatars.discourse-cdn.com/v4/letter/p/45deac/32.png) [@PoYo](https://discourse.processing.org/u/PoYo)\
**Post date:** [April 26, 2022, 6:55am UTC](https://discourse.processing.org/t/android-build-failure/36575/4 "2022-04-26T06:55:28Z")

</div>

I am having the same issue

---

<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 12, 2022, 8:55pm UTC](https://discourse.processing.org/t/android-build-failure/36575/5 "2022-05-12T20:55:39Z")

</div>

I issue was not produced when I downloaded the latest processing-4.0b8 with downloading Android Mode for Processing 4 (version 4.5.0 a4) and I’m able to run an Android Mode’s example Array code successfully on the device.

I need the following information @jSdCool @PoYo -

- Processing4 version
- OS on which you are using the processing4
- Android Modes version (In windows you can check Android Mode version in `C:\Users\User\Documents\Processing\modes\AndroidMode\mode.properties` file. Check prettyVersion)
- If you can provide the sample program which produces the issue, that would be helpful.
- How did you test it? Did you use the play button to run the app on the device?

Best,  
Rupesh
