Mac os x/ I tried the sudo apt get command but didn't work (command not found). I have no idea whether my Android SDK is up to date. How can I check it? I did go to Eclipse and updated everything I could with the Android SDK and AVD manager, downloaded all the available packages, refreshed all the plugins. Any ideas?
No, Just trying to run the GPS example sketch in Processing and get the same error message. The sketch needs ant 1.8. I installed ant but could not build it. All I want is to see that bloody sketch running... I'm not exactly sure what went wrong since I've done all the necessary steps the tutorial recommended.
Now I can't even open files from the File menu. I tried to open an old sketch that used to work in Android mode and even ran on my phone. Now I can't run it. What the hell's happening??? Why can't I use Processing? Why can't I refresh/update/install the necessary ant plugin form Eclipse? I have done everything... I guess I can no longer use Processing.
Ikoflex, thank you for all your help so far! I'm not quite sure what I'm doing to be fair. As I said earlier, any attempt to run sketches in Android mode results this error message:
The Android Ant-based built system requires Ant 1.8.0 or later. Current version 1.7
I thought I could install ant from Eclipse's plugin manager. Thanks to your kind help, using the tutorial your recommended I managed to install ant 1.8.2 from using the Terminal. Yet, Processing still complains about and (see the error message). At this point I have no clue what to do. Ant 1.8.2 is installed but Processing cannot find it. I tried removing 1.7 in Eclipse and add 1.8 as external jars. Still no luck. I tried an Android SDK update but that only install ant 1.7. Just now I went to eclipse>preferences>ant and I can see the 1.8.2 jars but no 1.7. Any help would be appreciated!
I don't have a mac here so I can't recreate what you're doing. I think you should take a simple example, the simplest that doesn't work, and try that. If it doesn't work, describe which environment you're trying to compile the example in. Is it the Processing IDE, or is it Eclipse? Try it in both Android mode, and Standard mode, if it's in the Processing IDE. If it's in Eclipse, did you create an Android project, or did you create a Processing sketch? All these details are important, and the fewer details you give, the less of a chance you have that someone helps you. In the Processing IDE I had to add libraries explicitly, otherwise nothing worked. In Eclipse you also have to add libraries to the BuildPath.
BTW, have you rebooted your mac after installing the new Ant?
Ok, I rebooted, no success. I have tried the most basic, simplest examples and my own sketches that used to run in Android mode and on my phone. They run perfectly in normal mode, not in Android mode. I even tried the first beta of Android Processing. Ant is apparently installed. An other particularly strange thing I noticed is that often the Processing menu stops working. Cannot open files, examples or even just check the version (About Processing). I can only open files from the file browser by clicking one them. Weird. Since the installation of the latest version everything is fucked up.
I can only think of one thing: I Processing cannot 'see' the ant library. Do I have to add ant to the P5 library? Do I need to move those jar files to a folder within Processing?
Eclipse is beyond my comprehension and only use it as an interface to install Android libraries and plugins.
OK, so you're using the processing ide. Look in the folder where processing got installed, there will be a subdirectory named lib, where you'll find some ant related .jar files. It's a crazy idea, but perhaps you can replace them with the .jar files that came with the newer version of ant. Otherwise, not sure what you can do. I can run some of the examples that came with the processing ide on the android, but not all. One that worked without a problem was the example under Cellular Automata, Conway. It works in the emulator without a problem, using processing-0194.
I cannot even open files or it takes 2-3 minutes (instead of 5-10 secs). Also, there's no menu present sometimes when Processing is opened. I deleted and reinstalled Processing but it still doesn't work. I don't think it could be any worse. Any ideas?
I'm angry and frustrated. No one can help me and it seems that all these years of learning programming was just a waste of time since I cannot use the Processing. I'll try a Snow Leopard re-install. If it doesn't help, I'll just burn my Processing books and start learning Eclipse:)
Ok I solved this, so when you get your processing back up or any future users that run into this problem this should help. The problem is Processing ships with its own copy of ant independent of what's on your system. Processing in fact is pretty close to being self contained so if you're getting a library error, it's probably in processing's folders and not in the system. if you want to see what version of ant your copy of processing has go to
./ant -v in the terminal If it's less than 1.8 you can't export your sketch to the android emulator. Hence the error you're getting means the copy of Ant in processingYOURVERSIONHERE/lib is the problem. You need to go to http://ant.apache.org/bindownload.cgi
and download the binaries for your system. Next uncompress the latest version of apache ant and open the bin folder. copy ant to processingYRVERSIONHERE/lib and overwrite the version that came with processing. Next go back to your apache_ant folder and open up lib copy ant-antlr.jar go back to your processing lib folder and find antlr.jar and rename is antlr-old.jar now paste the new ant-antlr.jar and rename it antlr.jar finally go back to the apache ant folder open up lib and copy everything paste all of it in your processing lib folder and overwrite all. This has worked for me, but I'm still getting errors when it comes to exporting to the emulator.
p.s. you don't actually need every file in apache_ant's lib directory, but it seems to work if you just copy all of them to processing's lib.
That's amazing but at this moment Processing does not work at all. When I say it doesn't work it means I cannot open files at all, it doesn't even load the menu. Topic here. Once I get it to work I'll try your work around. Thank you very much for all your efforts, I just wish I could try it...