# Programs not compiling anymore for ANDROID

**URL:** <https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239>\
**Category:** Processing for Android\
**Created:** [April 7, 2024, 7:26am UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239 "2024-04-07T07:26:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MPROCD](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Post date:** [April 7, 2024, 7:26am UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239/1 "2024-04-07T07:26:35Z")

</div>

Hello  
I have been working with Processing 3.5.3 for a long time and developed several APPS for my smartphone using the ANDROID mode.  
A few days ago, when I tried to compile a new Processing program, I got a lot of errors from the ANDROID compiler. Then I tried to load an exact program that I have working on my smartphone. It does not compile anymore, the compiler throwing the same lot of errors. Actually, i Got the same problem for any processing program.  
Can anyone help with this issue please?  
Thank you.

Here is just a sample of the messages:

* * *

"  
Checking the license for package Android Emulator in C:\Users\mdnnv\Documents\Processing\android\sdk\licenses  
Warning: License for package Android Emulator not accepted.  
Checking the license for package Android SDK Tools in C:\Users\mdnnv\Documents\Processing\android\sdk\licenses  
Warning: License for package Android SDK Tools not accepted.  
Checking the license for package Android SDK Build-Tools 29.0.2 in C:\Users\mdnnv\Documents\Processing\android\sdk\licenses  
Warning: License for package Android SDK Build-Tools 29.0.2 not accepted.

FAILURE: Build failed with an exception.

- What went wrong:  
Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.

> Failed to install the following Android SDK packages as some licences have not been accepted.  
> emulator Android Emulator  
> tools Android SDK Tools  
> build-tools;29.0.2 Android SDK Build-Tools 29.0.2  
> To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.  
> Alternatively, to transfer the license agreements from one workstation to another, see [Sign in - Google Accounts](http://d.android.com/r/studio-ui/export-licenses.html)

Using Android SDK: C:\Users\mdnnv\Documents\Processing\android\sdk

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

BUILD FAILED in 774ms  
org.gradle.tooling.BuildException: Could not execute build using connection to Gradle distribution ‘[https://services.gradle.org/distributions/gradle-6.8.3-bin.zip](https://services.gradle.org/distributions/gradle-6.8.3-bin.zip)’.  
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:51)  
at org.gradle.tooling.internal.consumer.ExceptionTransformer.transform(ExceptionTransformer.java:29)  
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:43)  
at org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:69)  
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)  
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)  
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)  
at java.lang.Thread.run(Thread.java:748)  
…  
"

* * *

---

<div class="post-metadata">

**Author:** ![JoseMY](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josemy/32/2016_2.png) [@JoseMY](https://discourse.processing.org/u/JoseMY)\
**Post date:** [April 7, 2024, 9:37am UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239/2 "2024-04-07T09:37:09Z")

</div>

Hi!  
I had a similar issue a year ago or so.  
I think I had to re-install all dependencies with either Android SDK or the Eclipse IDE so I could mark licenses as “accepted”.

---

<div class="post-metadata">

**Author:** ![MPROCD](https://avatars.discourse-cdn.com/v4/letter/m/51bf81/32.png) [@MPROCD](https://discourse.processing.org/u/MPROCD)\
**Post date:** [April 7, 2024, 7:10pm UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239/3 "2024-04-07T19:10:25Z")

</div>

That helped very much.  
I deleted the whole Processing directory, installed the latest Processing version and added Android mode.  
I run a simple sketch. During the Android compilation, the system automatically installed the emulator and accepted all required Tools licenses. The Android sketch run as expected.

Thanks a lot

---

<div class="post-metadata">

**Author:** ![yves.cordier](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@yves.cordier](https://discourse.processing.org/u/yves.cordier)\
**Post date:** [April 12, 2024, 10:10pm UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239/4 "2024-04-12T22:10:00Z")

</div>

I had the same problems. At least I remove All about processing from my computer and reinstall only the new version. When I put the android compiler, it loads corectaly everything and all works fine. when trying on another computer to have the two versions 3.xx and 4.xx, no problems on java version but impossible to generate android application (graddle error at compilation)

sorry for my poor english but french people are not very clever on foreign languages…

regards

---

<div class="post-metadata">

**Author:** ![alptugan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/alptugan/32/19406_2.png) [@alptugan](https://discourse.processing.org/u/alptugan)\
**Post date:** [April 14, 2024, 3:20pm UTC](https://discourse.processing.org/t/programs-not-compiling-anymore-for-android/44239/5 "2024-04-14T15:20:12Z")

</div>

I had similar compiling issues few days ago. I think there is a problem with Processing’s SDK download script. I found a workaround installing required SDKs and command-line tools using Android Studio. You can find step-by-step instructions in my following post on Github.

> <https://github.com/processing/processing-android/issues/756#issuecomment-2041473112>
>
> On a fresh install of Android mode 4.5.1, when selecting automatic Android SDK i…nstallation it completes the ~250MB download but then fails with a "Bad news" error message.
> 
> For anyone else running into the same problem, I managed to set the SDK up manually in the following way:
> 
> 1. manually download the \[Android SDK Command-Line Tools\](https://developer.android.com/tools/releases/cmdline-tools) and extract them into \`youruserdirectory/Library/Android/sdk/cmdline-tools/latest\`
> 2. run \`~/Library/Android/sdk/cmdline-tools/latest/bin/sdkmanager "platforms;android-33"\`
> 3. back in Processing, open Android mode, choose manual SDK and select the \`youruserdirectory/Library/Android/sdk\` directory
