Skip to content
This repository was archived by the owner on Aug 14, 2018. It is now read-only.
This repository was archived by the owner on Aug 14, 2018. It is now read-only.

Unable to run on device; stuck compiling #67

Open

Description

@GaryHomewood

Hi
I am unable to get a sketch running on Android.

Using Processing 2.2 on OSX 10.9.2
Installed Java SE 7u55 from Oracle, and I have followed previous issues to set up javac in /Applications/Processing.app/Contents/PlugIns/jdk1.7.0_55.jdk/Contents/Home/jre/bin/

javac -version shows 1.7.0_55

Android 4.4.2 phone is set up for USB debugging

When I try "run on device" I get the following output, it gets stuck "Compiling 3 source files" and nothing appears on the phone.

-set-mode-check:

-set-debug-files:

-check-env:
Android SDK Tools Revision 22.6.3
Installed at /Applications/Android Studio.app/sdk

-setup:
[echo] Project Name: sketch_140517a
Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
Using latest Build Tools: 19.0.3
[echo] Resolving Build Target for sketch_140517a...
Project Target: Android 2.3.3
API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/res
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/rsObj
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/rsLibs
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/gen
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/classes
[mkdir] Created dir: /var/folders/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/dexedLibs
[echo] ----------
[echo] Resolving Dependencies for sketch_140517a...
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/zh/bm23rpxx1ljfs0tlvghz9zzr0000gn/T/android2295280901380018275sketch/bin/classes

Any ideas?

Activity

  1. GaryHomewood commented on May 17, 2014

    @GaryHomewood
    Author

    Ok I think its because Apache Ant isn't in the path for OSX Mavericks, so I did the following:

    1. Install Homebrew
    2. Install Ant -
      $ brew install ant
    3. In Processing, File > Export Android Project
    4. Go to the newly created android folder in the sketch folder and then
      $ ant debug
    5. Install the generated apk to my connected device using. If the app is already installed, include -r flag
      $ adb install -r sketchname-debug.apk

    Still can't get it to run on the device through PDE, it hangs on the compile, but at least I can install sketches from the command line.

  2. oolong commented on Jul 6, 2014

    @oolong

    Same problem here except we've got JDK 8u5. Same version of OS X.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions