HyperNext Android Creator

Discussions => HAC Android Bug Reporting => Topic started by: kaboekieman on May 28, 2012, 11:36:29 AM

Title: adb error and trouble loading emulator/building apk
Post by: kaboekieman on May 28, 2012, 11:36:29 AM
Hi Malkom,
I am having problems with the adb and compiling to emulator and building the apk file. I made a fresh install of java 6 (jdk-6u32-windows-i586.exe), then the newest apple quicktime (QuickTimeInstaller.exe), then the latest hac easy install (HACeasy114.exe). My platform is Windows 7, 32 bit.

I can make an AVD (another issue is that the SDK manager sometimes won't boot... a fix (sometimes) is to restart HAC and then select from the menu: Android > Android SDK again).

In the ShowLog, e.g. Ctrl +L (great feature by-the-way  :)) the following is shown:

*** ANDROID SDK ***

Android SDK loading...
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\"

D:\HAC\HAC Lessen\Hello World>"SDK Manager.exe"
"SDK Manager.exe" wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE


The following error messages are received when pussing the following buttons:


*** ADB START ***

Android_ADB_Start .....DebugKey Data
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\platform-tools\"

D:\HAC\HAC Lessen\Hello World>adb start-server
adb wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE


*** ADB KILL ***

Android_ADB_Kill .....DebugKey Data
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\platform-tools\"

D:\HAC\HAC Lessen\Hello World>adb kill-server
adb wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE


*** RUN ANDROID *** (the AVD is running)


1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....  DONE
PH_2 Android_CopyStack....  DONE
PH_3 Android Updating Manifest ... DONE
PH_4 Android Repackaging.....
PH_4 aapt package -f -v --version-code 1 -M "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Repackaging..
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\platform-tools\"

D:\HAC\HAC Lessen\Hello World>aapt package -f -v --version-code 1 -M "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
aapt wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE
PH_5 Android BuildAPK.....
Rebuild Data
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\tools\"

D:\HAC\HAC Lessen\Hello World>apkbuilder "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" -u -z "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -f "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\classes.dex"
apkbuilder wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE
PH_6 Android_SignAPK .....TYPE:---   debug.keystore
Debug Key
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\Java\jdk1.6.0_32\bin\"

D:\HAC\HAC Lessen\Hello World>jarsigner -J-Duser.language=en -keystore "C:\Users\Joena\AppData\Roaming\HAC_Data\data\debug.keystore" "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" androiddebugkey
jarsigner wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.

Debug Data
  DONE
PH_7 Android_SignVerifyAPK .....-
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\Java\jdk1.6.0_32\bin\"

D:\HAC\HAC Lessen\Hello World>jarsigner -J-Duser.language=en -verify  "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk"
jarsigner wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
-
shell jar verify failed


*** BUILD ANDROID ***

1 - Compiling HyperNext code
Android Copy Runtime ....  DONE
PH_1 Android Copy Resources ....  DONE
PH_2 Android_CopyStack....  DONE
PH_3 Android Updating Manifest ... DONE
PH_4 Android Repackaging.....
PH_4 aapt package -f -v --version-code 1 -M "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
Repackaging..
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\platform-tools\"

D:\HAC\HAC Lessen\Hello World>aapt package -f -v --version-code 1 -M "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\AndroidManifest.xml" -I "C:\Program Files\android-sdk-windows\platforms\android-9\android.jar" -0 stk -F "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -A "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\assets" -S "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\res" --rename-manifest-package org.HelloWorld
aapt wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE
PH_5 Android BuildAPK.....
Rebuild Data
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\android-sdk-windows\tools\"

D:\HAC\HAC Lessen\Hello World>apkbuilder "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" -u -z "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\Hello World.ap_" -f "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\bin\classes.dex"
apkbuilder wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.


  DONE
PH_6 Android_SignAPK .....TYPE:---   debug.keystore
Debug Key
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\Java\jdk1.6.0_32\bin\"

D:\HAC\HAC Lessen\Hello World>jarsigner -J-Duser.language=en -keystore "C:\Users\Joena\AppData\Roaming\HAC_Data\data\debug.keystore" "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk" androiddebugkey
jarsigner wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.

Debug Data
  DONE
PH_7 Android_SignVerifyAPK .....-
D:\HAC\HAC Lessen\Hello World>cd "C:\Program Files\Java\jdk1.6.0_32\bin\"

D:\HAC\HAC Lessen\Hello World>jarsigner -J-Duser.language=en -verify  "C:\Users\Joena\AppData\Roaming\HAC_Data\data\HN_Runtime\dist\Hello World.apk"
jarsigner wordt niet herkend als een interne
of externe opdracht, programma of batchbestand.
-
shell jar verify failed



I have tried this with a new 'Hello World' project (from scratch). Do you know what I am doing wrong...? it's like the program can't find the right path, but after futher analysis the paths where correct, e.g. in the menu: Android > Android Paths all the four locations have a green mark next to them.

Hope you can help me out? Thx in advance, Jeroen
Title: Re: adb error and trouble loading emulator/building apk
Post by: kaboekieman on May 28, 2012, 12:19:46 PM
hmmmms, it works :) I remembered (when experminting with eclipse/java/android sdk combo long ago ;)) something.... I made the following addition in the path (in the environment setting)

;C:\Program Files\android-sdk-windows\tools\;C:\Program Files\android-sdk-windows\platform-tools\;C:\Program Files\android-sdk-windows\platforms\android-9\;C:\Program Files\Java\jdk1.6.0_32\bin\

Now it is able to find the files needed ;)

Title: Re: adb error and trouble loading emulator/building apk
Post by: Malkom on May 28, 2012, 12:59:10 PM
Hi Jeroen

Thank you for the fast reply on this and fixing it -  I thought I may have broken something and was just starting to debug - :)

It would have taken me a long time to think about the Environment Variable and its path :)

Thanks again, it definitely helps others,  as I'm sure someone else must have done this when using Eclipse etc.

Malkom
Title: Re: adb error and trouble loading emulator/building apk
Post by: kaboekieman on May 29, 2012, 12:28:03 PM
forgot to mention that after setting the path's in the environment variables you need to reboot (for windows). After rebooting it should work ;)

grts, Jeroen