gpt4 book ai didi

java - 使用 Processing 在 Android SDK 中编译 build.xml 时出现问题

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:26:51 24 4
gpt4 key购买 nike

我正在运行最新版本的 Processing(v2.1) 和最新版本的 Android SDK。我根据 Processing 网站上的教程安装了 SDK,但是该教程非常过时,我找到的关于该主题的任何其他教程也是如此。当我在处理 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

任何有关如何让它运行的建议都将不胜感激。

最佳答案

确保您的系统上安装了最新的 Java,并卸载您当前拥有的 ADT。

在此处获取最新的 Android 开发人员工具:http://developer.android.com/sdk/index.html

关于java - 使用 Processing 在 Android SDK 中编译 build.xml 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19897505/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com