# Basic Code Build in Processing 3 but does not build in Processing 4 (both Android Mode)

**URL:** <https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591>\
**Category:** Processing for Android\
**Created:** [March 6, 2022, 10:28am UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591 "2022-03-06T10:28:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myrdalm](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Post date:** [March 6, 2022, 10:28am UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/1 "2022-03-06T10:28:15Z")

</div>

I’ve been trying to build codes on my phone and it works when I use Processing 3 Android Mode but fails when using Processing 4 Android Mode. This also applies to basic codes and examples given by the IDE and website. I just could not figure out where the problem lies.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [March 6, 2022, 1:41pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/2 "2022-03-06T13:41:19Z")

</div>

Processing 4 does not currently support Android mode. You will have to use Processing 3.5.4 if you want to program for Android.

---

<div class="post-metadata">

**Author:** ![Myrdalm](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Post date:** [March 6, 2022, 2:14pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/3 "2022-03-06T14:14:56Z")

</div>

Can’t Android mode 4.5.0a2 be used for the latest version of processing 4.0b6? That was the android mode version I used in testing which I installed manually. Though build fails.

---

<div class="post-metadata">

**Author:** ![svan](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@svan](https://discourse.processing.org/u/svan)\
**Post date:** [March 6, 2022, 5:33pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/4 "2022-03-06T17:33:44Z")

</div>

Not sure where you got hold of 4.5.0a2; Processing 4 ships with 4.2.1 and I know that version doesn’t work when you try to add the Android mode.

---

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [March 6, 2022, 11:45pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/5 "2022-03-06T23:45:16Z")

</div>

Hello @Myrdalm,

See tweet here on main page:  
[https://android.processing.org/](https://android.processing.org/)

Which links to here:

> **[Release Version 4.5.0 Alpha 2 of the Android mode ·...](https://github.com/processing/processing-android/releases/tag/android-401)**
>
> Compatible with Processing 4.0 beta 1!
> This second alpha version of the Android mode fixes one issue that breaks sketch building on Windows:
> 
> \#665: Replace backward slashes with forward slashes

The modes available to Processing 4.0b6:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/b/b5088f3926a9acfb2289b7c1a82e3b05b513e3e7.png)

`:)`

---

<div class="post-metadata">

**Author:** ![Myrdalm](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Post date:** [March 7, 2022, 3:55am UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/6 "2022-03-07T03:55:08Z")

</div>

The mode is not available for Processing 4.0b6, for the processing version is a pre-release, wherein you should install the mode manually. The release version 4.5.0 Alpha 2 was tested with the current processing version, using the examples in particular, but it does not build during android mode.

---

<div class="post-metadata">

**Author:** ![Myrdalm](https://avatars.discourse-cdn.com/v4/letter/m/bcef8e/32.png) [@Myrdalm](https://discourse.processing.org/u/Myrdalm)\
**Post date:** [March 7, 2022, 12:19pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/7 "2022-03-07T12:19:48Z")

</div>

Maybe it would be better to confirm if does Processing 4.0b6 compatible with Android mode verion 4.5.0 Alpha 2. If version are compatible, may I know the possible reasons why build fails?

---

<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, 9:37pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/8 "2022-05-12T21:37:17Z")

</div>

Can you confirm with installing Android Mode for Processig4 version 4.5.0a4 with the processing4 version 4.0b8.  
Use contribution manager of processing4 to install as follows. I have confirmed there is no issue in using one of the examples and installing it on the device with the version mentioned.

 ![DiscourseProcessingReplyToMyrdalm](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/d/9/d955804234e02b0c9a5b28bf3710b67de1634d3f.png)

---

<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, 9:40pm UTC](https://discourse.processing.org/t/basic-code-build-in-processing-3-but-does-not-build-in-processing-4-both-android-mode/35591/9 "2022-05-12T21:40:25Z")

</div>

Can you tell me more information about build fails? What error do you see on build fail? @Myrdalm

Best,  
Rupesh
