We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I have been trying to follow the tutorial below:
http://processing.org/tutorials/android/
I did followed the instruction below, as well:
http://wiki.processing.org/w/Android
Therefore, I am using API 10. I changed to "android.emulator.port=5554" inside the "preferences.txt" and I also make sure that the emulator for AVD is opened before I start "Run".
I have got the error below, when I tested with Processing 2.1. Is there any way to solve this? By the way, I have been testing on OSX 10.8.5.
Thank you in advance.
jicx
---------------------------
-set-mode-check:
-set-debug-files:
-check-env:
Android SDK Tools Revision 22.2.1
Installed at /Applications/adt-bundle-mac-x86_64-20130917/sdk
-setup:
[echo] Project Name: DroidTest
Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
Using latest Build Tools: 18.1.1
[echo] Resolving Build Target for DroidTest...
Project Target: Android 2.3.3
API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/res
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/rsObj
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/rsLibs
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/gen
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/classes
[mkdir] Created dir: /var/folders/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for DroidTest...
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/1c/_tvl9h_13vx4vpm6b9bzjs900000gq/T/android7778007465309105930sketch/bin/classes
[javac] Unable to locate an executable at "/Applications/Processing2.1/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac" (-1)
BUILD FAILED
/Applications/adt-bundle-mac-x86_64-20130917/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Applications/adt-bundle-mac-x86_64-20130917/sdk/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
Total time: 3 seconds
Answers
Happens here too since I installed 2.1b1 I think, Not sure if it happened for you too since update? If so, then it's probably something with the update
I just saw this Updated and tried again, didn't work. Maybe it needs a reboot, but I will do that later to see if that works :/
It was already updated, when I tested it :) …
I'm having the same problem... it says:
[javac] Unable to locate an executable at "/Applications/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac" (-1)
it's weird because there is not a javac file in there :s
I am having the exact same problem on OSX 10.9 and also on 2 different windows 7 machines. I have tried an older version of processing, also using different combinations of 32bit and 64bit Java, android SDKs and processing IDE's and still no luck. The one computer I have been able to get it to work on has been a 32bit version of windows 7. I would really like the wiki to get updated with a solution to this problem if one exists. Here is what Processing IDE outputs when trying to run an example sketch in the emulator.
Anyone fixed the issue? Please let me know if you did. Thanks.
you may pay more attention to these words:
I havn't installed version 10, too. instead of 18. thus my prompt is also fail to build. this may be the reason.
I am using API 10, but I have the same problem. Just for the reason of test (it may be irrational ;) ), I copied "javac" from /usr/bin/ to /Applications/Processing2.1/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/, but I had the same problem ...
yeah, this sucks! I think 10.9 and android processing don't play well. Any fix in sight? Anyone find a solution?
Unable to locate an executable at "/Applications/Processing.app/Contents/PlugIns/jdk1.7.0_45.jdk/Contents/Home/jre/bin/javac"
no, uyou needn't to do like that. for javac is a command in jdk not in jre. you may modify your build.xml in order that path points to Contents/PlugIns/jdk1.7.0_45.jdk, or add this path at os config. path=java home:.Contents/PlugIns/jdk1.7.0_45.jdk
Did anyone find a solution? I am facing problems too since the tempting update that I did. . . -_- .
Following is my console by the way.
Looks like you're using some newer version of processing which has java jdk1.7.0_45.jdk built in. Maybe this is cause of the problem.
Try downgrading and using processing 2.0.1 or smth like that.
find the androidManifest.xml of the sample pde under your sample folder or your own folder open it with some editor, find this words, <uses-sdk android:minSdkVersion="10"
,then add this, android:targetSdkVersion="18" /> save it and have a try.
tried the above solution. doesn't seem to work. getting the same error still. As mentioned by folks started happening after updating to OSX 10.9 and Processing 2.1.
It is not limited to Mac OSX. The exact thing happens on windows 7. So far the only set up i can get this to work on is a 32bit installation of windows 7.
Thanks for the tip Gravebond. If no fix comes up I'll probably be bootcamping Windows 7 32bit. I need to get Processing Android up and running quickly to prototype a few apps I am working for my thesis :).
However, just as an attempt,I tried to downgrade to Processing 2.0.3 on which I have always run the Android mode with OS X 10.8. However it does not seem to work with OS X 10.9 also. This is how the console looks. Slightly different errors.
Having the same Java error pop up that Processing cannot find "javac".
I've installed the Android SDK fine with Android 2.3.3 (API 10) installed. I've also installed the latest version of Java (v. 1.7.0_45) and have Processing 2.1 running on OS X 10.8.5.
Complete console log:
Processing 2.1 can not compile android app on my computer, gives same error, but version 2.0.1 - works, I don't found it on official site, but Google it on https://www.macupdate.com/app/mac/15834/processing with it I successfully run processing example app on my phone.
Downgrading from 2.1 to 2.01 worked for me too. In addition, I followed an advice in another post about removing the release 19 of the Build-tools in the Android SDK Manager and leaving it in 18.1.1.
More here: http://forum.processing.org/two/discussion/comment/4106#Comment_4106
Same with me, processing 2.1 does not seen to work with android mode.
After so many hours dealing with the same problem, also concluded that processing 2.1 android mode does not work.
At least, I got back to work my older processing versions by downgrading the Android-SDK-Tools to r21 by downloading: http://dl-ssl.google.com/android/repository/tools_r21-windows.zip and unziping it replacing the tools folder in my adt-bundle-windows\sdk\tools. All of this happened in two different windows 7-64 installations (I had to damage the second to learn how to fix it)
It is a shame we haven´t had any official response on this issue.
![Processing back to work] (http://forum.processing.org/two/uploads/imageupload/462/76KC3CMIVSY4.jpg "Processing back to work")
Just throwing my two cents in here to say the same Processing 2.1 Android Mode will not work for me. Using 2.0b9 works fine.
Hi, would somebody please share the link to the 2.0b9 version? I can't find it. Thanks!
Try using version 2.0.3, the stable release immediately prior to 2.1.
This is such a mess...3 years same cause of problem.
This is still happening as of yesterday's update :(
Long time listener, first time caller as they say....
I've been trying to port some sketches to android at the suggestion of my master's thesis supervisor, and I've run smack dab into the middle of this bug... It would be nice to either have android mode fixed or have better support for Eclipse development (as I've tried that as well with a ton of issues on even referencing PApplet).
Regardless I am going to try to use Proc 2.0.3 and see what happens.
Edit 2 hours later: Processing stable release 2.0.3 seems to work properly with Android mode. That's a quick fix for users relying on Android until a fix is made available.
Regarding Error running javac.exe compiler.
What worked for me was setting the environment variable in Windows.
find path to java bin, i.e. C:\Program Files (x86)\Java\jdk1.6.0_39\bin. Copy it.
Control Panel\System and Security\System
Oh, and if you want to run on emulator, you must first run the emulator :)
Android - Android AVD Manager, select the previously created device or first create new device and then start..
Our medialab is creating an open-source course that teaches the basics of programming, using Processing.
To pull beginners in, they learn to place their code on an Android tablet, which we then frame (like a 'normal' painting), so they can hang their creations on their wall at home.
However, this bug makes our project less monkey-proof, because now we have to give beginners more specific instructions on which versions to download, and all that jazz.
Long story short: is there any timeframe in which a bug like this is usually fixed?
after updating the SDK Tools to version 22.6.1 and SDK Build-tools to version 19.0.3 all versions of Processing - 2.0.1, 2.0.3 and 2.1.1 work on Windows XP SP3.
No luck here with Processing 2.1.1 on Mac OSX 10.9.2, SDK Tools version 22.6.1 and SDK Build-tools version 19.0.3.
It does work with Processing 2.0.3.
Hello everybody,
I tried to run it with JAVA 1.7.0_25 64bit and Processing 2.1.1 on Windows 7 64bit. The error "Error from inside the Android tools, check the console." was continuously coming up.
It was SOLVED, or you can say I could pass on to other steps, by adding the path of javac in the environmental variables' PATH stream. For eg: C:\Program Files\Java\jdk1.7.0_25\bin (for me it was)
You basically need to give the path of your bin directory where your jdk version is installed on your PC.
Shadab K
Weave and Connect
Im running MAC OS X 10.8.5 and Processing 2.0.3 works, Version 2.1.1 of Processing does not work on my machine connected to a Tablet with Android Version 4.1.1 (Hope it helps someone else or prompts an update for version 2.1.1 of processing).
Sincerely, Michael
Solved. Please refer to http://forum.processing.org/two/discussion/3585/android-java-issue#Item_3
I solved this problem, adding the path for the JDK: e.g. "C:\Program Files\Java\jdk1.8.0_05\bin" .... to the environment variable "PATH" (! DONT ERASE the existing path, to add a new one use semicolon
;
)To change the environment variable go to system advance properties.
For more information please check the responses of Jure and shadabk92