Building Android Project Fails

Hey there, Im just getting into Processing and tried to run the sketch from the tutorial. Letting the sdk install autmatically by Processing didnt work for me so I downloaded all sdks with android studio down to 14(android 4.0) and edited the path in the preferences.txt file. When I now try letting the project being build I receive this:

[mkdir] Created dir: C:\Users\Marvin\AppData\Local\Temp\android1390691181088263247sketch\bin [echo] org.eclipse.jdt.core.JDTCompilerAdapter

BUILD FAILED C:\Users\Marvin\AppData\Local\Temp\android1390691181088263247sketch\build.xml:81: Cannot find C:\Users\Marvin\AppData\Local\Android\sdk\tools\ant\build.xml imported from C:\Users\Marvin\AppData\Local\Temp\android1390691181088263247sketch\build.xml

Total time: 0 seconds

I installed the most recent official version of processing and Android mode. Also Im on Win10, if that helps:P Thanks for your advice

Answers

  • Answer ✓

    BUILD FAILED C:\Users\Marvin\AppData\Local\Temp\android1390691181088263247sketch\build.xml:81: Cannot find C:\Users\Marvin\AppData\Local\Android\sdk\tools\ant\build.xml imported from C:\Users\Marvin\AppData\Local\Temp\android1390691181088263247sketch\build.xml

    Please check Digl's comment on March 30 in the next link: https://forum.processing.org/two/discussion/comment/97531/#Comment_97531

    The latest SDK removed support to the ant scripts, which are used by Processing to generate your apk files from your code to export to your device. Instead, the latest SDK only uses gradel. The temporal solution is to stick to an older version of the SDK. As an alternative, follow Digl's directions. In a nutshell, you install the latest SDK and then, you need to replace the Tools folder inside the SDK folder with a previous version. The fix is simple.

    Kf

  • Well that worked, thx alot

  • Great to hear @rn42vlr and good luck!

    Kf

Sign In or Register to comment.