Cannot run on device/emulator for mac 10.9.1 processing 2.1

edited January 2014 in Using Processing

I am a beginner and just copied a simple code from the internet, I can run it in Java mode. But an error message was shown when I changed it to Android mode. The error message is as follow:

-set-mode-check:

-set-debug-files:

-check-env: Android SDK Tools Revision 22.3.0 Installed at /Users/owenwu/Desktop/adt-bundle-mac-x86_64-20130917/sdk

-setup: [echo] Project Name: sketch_140107a Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup: Using latest Build Tools: 18.1.0 [echo] Resolving Build Target for sketch_140107a... Project Target: Android 2.3.3 API level: 10 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/res [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/rsObj [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/rsLibs [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/gen [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/classes [mkdir] Created dir: /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/dexedLibs [echo] ---------- [echo] Resolving Dependencies for sketch_140107a... Library dependencies: No Libraries


API<=15: Adding annotations.jar to the classpath. [echo] ---------- [echo] Building Libraries with 'debug'... [subant] No sub-builds to iterate on

-code-gen: Merging AndroidManifest files into one. Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [echo] ---------- [echo] Handling Resources... Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... Generating BuildConfig class.

-pre-compile:

-compile: [javac] Compiling 3 source files to /var/folders/st/qyjx11ps65d2llgb06v3ngh40000gn/T/android7405112714340519361sketch/bin/classes [javac] Unable to locate an executable at "/Users/owenwu/Desktop/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac" (-1)

BUILD FAILED /Users/owenwu/Desktop/adt-bundle-mac-x86_64-20130917/sdk/tools/ant/build.xml:720: The following error occurred while executing this line: /Users/owenwu/Desktop/adt-bundle-mac-x86_64-20130917/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 2 seconds

I tried reinstall the application but it doesn't help.

Answers

  • Since you are a beginner you probably don't know this, but "Android Mode" is not actually ready to go when you first download Processing. You first need to download and install the Android SDK. Follow the instructions on this site:

    http://wiki.processing.org/w/Android

Sign In or Register to comment.