Author Topic: Android - V10 release candidate  (Read 82566 times)

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: Android - Beta SDK
« Reply #30 on: 2011-Apr-24 »
check the JAVA_HOME path, sound like the path is set to jre and not jdk
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #31 on: 2011-Apr-24 »
Slight problem with the webOS packing too :

palm-package: illegal value for property "id" in C:\Users\Nicholas\Documents\GLBasic\Utilities\Plasma\Plasma.app\appinfo.json
It look like the %YOURCOMPANY_LOWERCASE% and %APPNAME_LOWERCASE% parameters aren't being filled in

Quote
check the JAVA_HOME path, sound like the path is set to jre and not jdk
This is my set of system variables:

Quote
ALLUSERSPROFILE=C:\ProgramData
ANDROID_SWT=C:\Android\android-sdk\tools\lib\x86
APPDATA=C:\Users\Nicholas\AppData\Roaming
CommonProgramFiles=C:\Program Files\Common Files
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
COMPUTERNAME=NICHOLAS-PC
ComSpec=C:\Windows\system32\cmd.exe
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\Nicholas
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25
LOCALAPPDATA=C:\Users\Nicholas\AppData\Local
LOGONSERVER=\\NICHOLAS-PC
MinGW=C:\MinGW\bin
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
PalmPDK=C:\Program Files (x86)\Palm\PDK
PalmSDK=C:\Program Files (x86)\Palm\SDK
Path=C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\MinGW\bin;C:\Program Files (x86)\Java\jdk1.6.0_25
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=170a
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
PROMPT=$P$G
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TEMP=C:\Users\Nicholas\AppData\Local\Temp
TMP=C:\Users\Nicholas\AppData\Local\Temp
USERDOMAIN=Nicholas-PC
USERNAME=Nicholas
USERPROFILE=C:\Users\Nicholas
VBOX_INSTALL_PATH=C:\Program Files\Oracle\VirtualBox\
windir=C:\Windows
« Last Edit: 2011-Apr-24 by MrTAToad »

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Android - Beta SDK
« Reply #32 on: 2011-Apr-24 »
Quote
try to avoid spaces and brackets in you path - line 472 call the dex executable - works for me on windows 7 64 bit with jdk32 bit installed in c:\Programme

Code: GLBasic [Select]
JAVA_HOME=C:\Program Files (x86)\Java\jdk1.6.0_25
 

Maybe?

Dabz

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #33 on: 2011-Apr-24 »
I do have no spaces in the XP Virtual Machine though - and that failed...

I'll be installing it with no spaces on a proper XP machine later on, and we'll see how it goes there.

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Android - Beta SDK
« Reply #34 on: 2011-Apr-24 »
Its been a right nightmare for you hasnt it... chin up though! ;)

Dabz

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #35 on: 2011-Apr-24 »
I'm wondering whether there is too much being installed for the Android SDK - although it seems as though everything has to be selected before it will let you download it...

Soon know when I try it on the third machine :)
« Last Edit: 2011-Apr-24 by MrTAToad »

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: Android - Beta SDK
« Reply #36 on: 2011-Apr-24 »
Some extended feedback; basic tested both in the emulator and Android device:

These work:
- 2d drawsprite/rotosprite/transparency
- 3d with poly colors and textures
- loadsprite/loadfont/loadsound
- alphamode
- playsound
- platform info including battery
- portrait/landscape; no need to set width/height
- getjoy sensor
- compiled and run old game
- compiled only box2d

These are not working properly:
- no device for platforminfo
- print; odd stretching for certain words/length
- drawrect/drawline; no color only white  :S
- poly draw not tested
« Last Edit: 2011-Apr-24 by matchy »

Offline Albert

  • Dr. Type
  • ****
  • Posts: 257
    • View Profile
    • Blog
Re: Android - Beta SDK
« Reply #37 on: 2011-Apr-24 »
It isn't install the APK to my Android device. I doesn't found the APK in my project dir or in the c:\Windows\temp

Quote
compile+link:
Android=D:\Andrtest\SRBSRC\prg\Sanyi\android
success
_______________________________________
*** Finished ***
Elapsed: 42.5 sec. Time: 19:38
Build: 1 succeeded.

Offline Albert

  • Dr. Type
  • ****
  • Posts: 257
    • View Profile
    • Blog
Re: Android - Beta SDK
« Reply #38 on: 2011-Apr-24 »
I got that Succes message regardless I plugged or unplugged my Android.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #39 on: 2011-Apr-24 »
No luck with a proper XP machine either :

Quote
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.7.917 SN:bb3ccd2f - 3D, NET
Wordcount:55 commands
compile+link:
BUILDSRIPT

BUILD FAILED
C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:472: The following error occurred while executing this line:
C:\Program Files\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:203: apply returned: 255

Total time: 2 seconds
Android=C:\Documents and Settings\Jacky\My Documents\GLBasic\test\android
success

There must be something else that needs to be installed - or GLBasic can no longer be in a directory with a space...

Installed GLBasic inti C:\GLBasic - no difference
Tried a project directory with no spaces - no difference

Quote
BUILDSRIPT

BUILD FAILED
C:\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:639: The following error occurred while executing this line:
C:\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:271: exec returned: 1

Now I'm going to try a previous version of Java, just in case... 6u22 didn't help either...
« Last Edit: 2011-Apr-24 by MrTAToad »

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1540
    • View Profile
Re: Android - Beta SDK
« Reply #40 on: 2011-Apr-24 »
As for the packaging, after I compile in glb then I open as an existing java android project and run it from eclipse with the device and emulator.

Quote
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.7.917 SN:eb257ddf - 3D, NET
Wordcount:181 commands
compile+link:
BUILDSRIPT
     [echo] Creating output directories if needed...
     [echo] Compiling aidl files into Java classes...
     [echo] Compiling RenderScript files into Java classes and RenderScript bytecode...
     [echo] Generating R.java / Manifest.java from the resources...
    [javac] C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:384: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
     [echo] Converting compiled files and external libraries into C:\GLBDev\Projects\droidtest\android\bin\classes.dex...
     [echo] Packaging resources
     [echo] Running zip align on final apk...
     [echo] Debug Package: C:\GLBDev\Projects\droidtest\android\bin\glbasic-debug.apk
     [echo] Installing C:\GLBDev\Projects\droidtest\android\bin\glbasic-debug.apk onto default emulator or device...

BUILD FAILED
C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:639: The following error occurred while executing this line:
C:\Program Files (x86)\GLBasic_beta\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:271: exec returned: 1

Total time: 7 seconds
Android=C:\GLBDev\Projects\droidtest\android
success
_______________________________________
*** Finished ***
Elapsed: 12.2 sec. Time: 05:27
Build: 1 succeeded.

MrTAToad

  • Guest
Re: Android - Beta SDK
« Reply #41 on: 2011-Apr-24 »
What are your system variables ?

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Android - Beta SDK
« Reply #42 on: 2011-Apr-24 »
Quote
As for the packaging, after I compile in glb then I open as an existing java android project and run it from eclipse with the device and emulator.

Eclipse.... You dont need Eclipse installed!?!

EDIT: Just reading everything

Dabz
« Last Edit: 2011-Apr-24 by Dabz »

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Android - Beta SDK
« Reply #43 on: 2011-Apr-24 »
Okay, for those it doesnt work, can you please subject you OS specs/device...

Dabz

Offline Dabz

  • Mr. Polyvector
  • ***
  • Posts: 104
    • View Profile
    • BambooCoder
Re: Android - Beta SDK
« Reply #44 on: 2011-Apr-24 »
You shouldnt need Eclipse... Anyone trying to build their app using it is wrong!

Dabz