Waiting for device to become available

edited March 2014 in Android Mode

Hello , After a lot of problems with processing and android , i think i came to last problem .when i run the a simple sketch , seems like everythings okay but doestn start emulator. i tried sketch>>run in emulator .. i also tried that start emulator firstly , later run the code ,and vice versa . .

-set-mode-check:

-set-debug-files:

-check-env:
Android SDK Tools Revision 22.6.2
Installed at C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk

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

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
Using latest Build Tools: 18.0.1
     [echo] Resolving Build Target for sketch_140327a...
Project Target:   Android 2.3.3
API level:        10
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\rsObj
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\rsLibs
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\gen
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\classes
    [mkdir] Created dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\dexedLibs
     [echo] ----------
     [echo] Resolving Dependencies for sketch_140327a...
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] Since compiler setting isn't classic or modern, ignoring fork setting.
    [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
    [javac] Since compiler setting isn't classic or modern, ignoring fork setting.
    [javac] Compiling 3 source files to C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\classes
    [javac] Since compiler setting isn't classic or modern, ignoring fork setting.

-post-compile:

-obfuscate:

-dex:
input: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\classes
input: C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar
input: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\libs\processing-core.jar
Pre-Dexing C:\adt-bundle-windows-x86-20131030\adt-bundle-windows-x86-20131030\sdk\tools\support\annotations.jar -> annotations-d65244e9ac8f8f7f0ec72af534c44c84.jar
Pre-Dexing C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\libs\processing-core.jar -> processing-core-d7466cf4a346b1eaf25a630be454c63b.jar
Converting compiled files and external libraries into C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\classes.dex...
       [dx] Merged dex A (6 defs/2,2KiB) with dex B (2 defs/1,1KiB). Result is 8 defs/3,3KiB. Took 0,0s
       [dx] Merged dex A (8 defs/3,3KiB) with dex B (203 defs/686,6KiB). Result is 211 defs/812,4KiB. Took 0,2s

-crunch:
   [crunch] Crunching PNG Files in source dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\res
   [crunch] To destination dir: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res
   [crunch] Processing image to cache: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\res\drawable-hdpi\icon.png => C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable-hdpi\icon.png
   [crunch]   (processed image to cache entry C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable-hdpi\icon.png: 47% size of source)
   [crunch] Processing image to cache: C:\Users\Toshiba\AppDat
   [crunch] a\Local\Temp\android8724216630490789617sketch\res\drawable-ldpi\icon.png => C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable-ldpi\icon.png
   [crunch]   (processed image to cache entry C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable-ldpi\icon.png: 0% size of source)
   [crunch] Processing image to cache: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\res\drawable\icon.png => C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable\icon.png
   [crunch]   (processed image to cache entry C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\res\drawable\icon.png: 0% size of source)
   [crunch] Crunched 3 PNG files to update cache

-package-resources:
Creating full resource package...
     [aapt] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.

-package:
Current build type is different than previous build: forced apkbuilder run.
Creating sketch_140327a-debug-unaligned.apk and signing it with a debug key...

-post-package:

-do-debug:
Running zip align on final apk...
     [echo] Debug Package: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\sketch_140327a-debug.apk
[propertyfile] Creating new property file: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\build.prop
[propertyfile] Updating property file: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\build.prop
[propertyfile] Updating property file: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\build.prop
[propertyfile] Updating property file: C:\Users\Toshiba\AppData\Local\Temp\android8724216630490789617sketch\bin\build.prop

-post-build:

debug:
Shutting down any existing adb server...

( AND LOST CONNECTİON WİTH DEVICE WHILE LAUNCHING.TRY AGAIN )

please help me . i struggle this problem for a week.

Answers

  • I have moved this to the Android forum since that is what it is about and formatted your output as code to make it clearer.

  • Answer ✓

    hello guys ,, i have solved the problem : SOLUTION İS : EMULATOR'S NAME SHOULD BE "Processing-0217" and if you still have problem ; processing >file>preferences>preferences.txt(at the bottom part) click and open it , and if you havent "android.emulator.port=" , copy paste it and write the number of emulator( launch emulator and you will see uppest part at left ) .. if else you have different port number , correct it . sorry for my english . Thanks

  • Hi, I have added this line android.emulator.port but not solved. Any other idea ?

  • Hi, i'm having the same exact problem ... Maybe something with the PATH/environment variable, ANDROID_HOME, and that android folder that don't exist (many tutorials talk about it but i can't figure what it is) ...

    I'm still trying to resolve the problem and hopefully I could describe a solution there in a few days !

Sign In or Register to comment.