Can't get Android Mode working.
in
Android Processing
•
2 years ago
Okay so I tried to wait as long as possible before posting on the forums but I simply can not figure this one out and I've been at it for hours... forgive me if the solution is obvious or I am overly informative ha I really want to get this working.
So some details. I'm running windows XP 32 bit. I have the Android SDK along with the nearly all of the various files you can download through it (the only ones I don't have are pre-2.1). I've got the JDK installed and have it's path correctly setup (typing javac on cmd has no errors). I open up processing and try to run a blank program in Android mode and get a bunch of errors (I'll paste them below). A little loading box comes up "Building and Launching..." but it never goes away, even though the emulator is eventually booted up and ready. The errors are continually printed until I end the sketch.
Here's the output from Processing, from when I press play AFTER the emulator is up and running.
Android SDK Tools Revision 8
Project Target: Google APIs
Vendor: Google Inc.
Platform Version: 2.1-update1
API level: 7
------------------
Resolving library dependencies:
No library dependencies.
------------------
Importing rules file: tools\ant\main_rules.xml
Creating full resource package...
Creating sketch_dec07c-debug-unaligned.apk and signing it with a debug key...
AndroidEnvironment.listDevices() did this to me
java.io.IOException: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.exec.ProcessHelper.execute(ProcessHelper.java:65)
at processing.app.tools.android.AndroidSDK.runADB(Unknown Source)
at processing.app.tools.android.AndroidEnvironment.listDevices(Unknown Source)
at processing.app.tools.android.EmulatorController$3.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 7 more
AndroidEnvironment.listDevices() did this to me
java.io.IOException: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.exec.ProcessHelper.execute(ProcessHelper.java:65)
at processing.app.tools.android.AndroidSDK.runADB(Unknown Source)
at processing.app.tools.android.AndroidEnvironment.listDevices(Unknown Source)
at processing.app.tools.android.EmulatorController$3.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 7 more
And it continually prints those errors without end.
Thank you for your time, I hope we can get it working.
So some details. I'm running windows XP 32 bit. I have the Android SDK along with the nearly all of the various files you can download through it (the only ones I don't have are pre-2.1). I've got the JDK installed and have it's path correctly setup (typing javac on cmd has no errors). I open up processing and try to run a blank program in Android mode and get a bunch of errors (I'll paste them below). A little loading box comes up "Building and Launching..." but it never goes away, even though the emulator is eventually booted up and ready. The errors are continually printed until I end the sketch.
Here's the output from Processing, from when I press play AFTER the emulator is up and running.
Android SDK Tools Revision 8
Project Target: Google APIs
Vendor: Google Inc.
Platform Version: 2.1-update1
API level: 7
------------------
Resolving library dependencies:
No library dependencies.
------------------
Importing rules file: tools\ant\main_rules.xml
Creating full resource package...
Creating sketch_dec07c-debug-unaligned.apk and signing it with a debug key...
AndroidEnvironment.listDevices() did this to me
java.io.IOException: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.exec.ProcessHelper.execute(ProcessHelper.java:65)
at processing.app.tools.android.AndroidSDK.runADB(Unknown Source)
at processing.app.tools.android.AndroidEnvironment.listDevices(Unknown Source)
at processing.app.tools.android.EmulatorController$3.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 7 more
AndroidEnvironment.listDevices() did this to me
java.io.IOException: Cannot run program "adb": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at processing.app.exec.ProcessHelper.execute(ProcessHelper.java:65)
at processing.app.tools.android.AndroidSDK.runADB(Unknown Source)
at processing.app.tools.android.AndroidEnvironment.listDevices(Unknown Source)
at processing.app.tools.android.EmulatorController$3.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 7 more
And it continually prints those errors without end.
Thank you for your time, I hope we can get it working.
2