我正在运行最新版本的Processing(v2.1)和最新版本的

Android SDK.我根据Processing网站上的教程安装了SDK,但该教程非常过时,我在该主题上找到的任何其他教程也是如此.当我在Processing Android模式下运行任何Android应用程序时,我收到此编译器错误:

-set-mode-check:

-set-debug-files:

-check-env:

Android SDK Tools Revision 22.3.0

Installed at /Users/anonymous/Desktop/Programming/adt-bundle-mac-x86_64-20131030/sdk

-setup:

[echo] Project Name: FirstAndroid

Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:

Using latest Build Tools: 19.0.0

[echo] Resolving Build Target for FirstAndroid...

Project Target: Android 2.3.3

API level: 10

[echo] ----------

[echo] Creating output directories if needed...

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/res

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/rsObj

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/rsLibs

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/gen

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/classes

[mkdir] Created dir: /var/folders/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/dexedLibs

[echo] ----------

[echo] Resolving Dependencies for FirstAndroid...

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/hw/4lr3l8jx2qs7rkk_m29qmm343hkg0f/T/android4330892161628182717sketch/bin/classes

[javac] Unable to locate an executable at "/Users/anonymous/Desktop/Applications/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac" (-1)

[javac] Unable to locate an executable at "/Users/anonymous/Desktop/Applications/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac" (-1)

BUILD FAILED

/Users/anonymous/Desktop/Programming/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:

/Users/anonymous/Desktop/Programming/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.

Total time: 3 seconds

任何关于如何让它运行的建议将不胜感激.

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐