Quantcast
Channel: Android Mode - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 941

BUILD FAILED ("error=2, No such file or directory")

$
0
0
BUILD FAILED
/home/en/android-sdk-linux/tools/ant/build.xml:958: The following error occurred while executing this line:
/home/en/android-sdk-linux/tools/ant/build.xml:969: The following error occurred while executing this line:
/home/en/android-sdk-linux/tools/ant/build.xml:312: com.android.sdklib.build.ApkCreationException: Failed to create key: Cannot run program "/home/en/processing-3.0.1/java/bin/keytool": error=2, Nincs ilyen fájl vagy könyvtár
JAVA_HOME is set to: /home/en/processing-3.0.1/java
Update it if necessary, or manually execute the following command:
/home/en/processing-3.0.1/java/bin/keytool -genkey -alias AndroidDebugKey -keyalg RSA -dname "CN=Android Debug,O=Android,C=US" -validity 10950 -keypass android -keystore /home/en/.android/debug.keystore -storepass android
    at com.android.sdklib.build.ApkBuilder.getDebugKey(ApkBuilder.java:300)
    at com.android.sdklib.build.ApkBuilder.<init>(ApkBuilder.java:392)
    at com.android.ant.ApkBuilderTask.execute(ApkBuilderTask.java:334)
.
.
.

Total time: 20 seconds

OS: LinuxMint 17.2 64bit, but on Windows 8.1 64bit also there's the error. Processing version: 3.0.1, 3.0.2 (in 3.0.2 when I start writing code, it says The "PApplet" class does not exist.). I've installed API 10,15,19 and Android tools. My device and the requested API is selected. USB-debugging on.

And I'm trying to run this simply code:

    void setup(){
      size(displayWidth,displayHeight);
      background(#FF9900);
      noStroke();
    }

    void draw(){
      ellipse(random(0,width),random(0,height),30,30);
    }

Could somebody help me please? :)


Viewing all articles
Browse latest Browse all 941

Trending Articles