Android Mode (4.6.1) for Processing (4.4.4) - Emulator Issues

Hello folks!

I have had no success getting the emulator to work in Android Mode for Processing.

I am exploring issues with the current versions to date.

Development environment:

  • Windows 10 Pro
  • Processing 4.4.4
  • Motorola Android Phone (Android version 14)
  • Android Mode for Processing 4.6.1 (installed July 28).
  • I did an SDK update

This is NOT a solution for the IDE but demonstrates that the emulator is working with the installed software if launched manually from the command prompt:

  1. Launch emulator from command prompt:

emulator -avd Pixel_4_API_33 -no-snapshot-load

  1. Try to use the emulator with Processing and let it fail; it still generates an APK (example below):

android_test_1_0_0_debug.apk

It will build the APK and tell you emulator is not installed.
Only install it once the first time!
It will fail to launch emulator and repeat this cycle every time you try it!

  1. Send the APK to the emulator from the command prompt:

adb install -r D:\temp\android7295915102617463803sketch\app\build\outputs\apk\debug\android_test_1_0_0_debug.apk

That is 4 hrs of my life I would like back!
Details (paths, environment variables, batch files, etc.) not provided.
There is a lot more to this under the hood!
I have some nice batch files I am working on for this for personal use.

Output of emulator:

This was an important first step to determine that it is working if run manually from the command prompt!

Next steps are to determine why it is not working in the Processing IDE in Android Mode and update it.

This was not easy!

:)