When compiling for Android, I got this msg:
QuoteWordcount:41 commands
compile+link:
BUILDSRIPT
BUILD STAGE 1: Compile and pack
[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] D:\Programas\GLBasic\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 D:\Programas\GLBasic\Proyectos\Test1\distribute\Android\bin\classes.dex...
[echo] Packaging resources
[echo] No key.store and key.alias properties found in build.properties.
[echo] Please sign D:\Programas\GLBasic\Proyectos\Test1\distribute\Android\bin\glbasic-unsigned.apk manually
[echo] and run zipalign from the Android SDK tools.
BUILD SUCCESSFUL
Total time: 7 seconds
BUILD STAGE 2: Install on device
[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] D:\Programas\GLBasic\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 D:\Programas\GLBasic\Proyectos\Test1\distribute\Android\bin\classes.dex...
[echo] Packaging resources
[echo] Running zip align on final apk...
[echo] Debug Package: D:\Programas\GLBasic\Proyectos\Test1\distribute\Android\bin\glbasic-debug.apk
[echo] Installing D:\Programas\GLBasic\Proyectos\Test1\distribute\Android\bin\glbasic-debug.apk onto default emulator or device...
BUILD FAILED
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:653: The following error occurred while executing this line:
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:271: exec returned: 1
Total time: 11 seconds
Android=D:\Programas\GLBasic\Proyectos\Test1\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 25.2 sec. Time: 01:11
Build: 1 succeeded.
It doesn't matter if the second stage fails, especially if you have no device attached
It is driving me crazy...
I can install&run on the SDK emulator, but when I compile to the real device, I get this error.
(Of course, the device is attached).
It doesnt matter if DEVELOPMENT USB is ON or OFF on Android.
you need the drivers for your device - check if its working with going to the adb.exe and type in a shell dab devices is your is listed you can run on it. its not glbasic magic its windows
If you have installed the drivers, try running "adb usb" from the command line to ensure it's connected to your phone, then compile.
My device has no drivers, and in the "hardware administrator" (sorry, my win is in spanish) I have a ANDROID device with a yellow warning signal.
ADB devices & adv usb says "no android device conected"
My device is a COBY KYROS 7024
http://www.cobyusa.com/?p=prod&prod_num_id=10574&pcat_id=1013
Don't know if it'll work but try installing PDANet
http://www.junefabrics.com/index.php
And it should install the drivers for your tablet
during the install process.
okee
Yeah, that's what I did.
So first I did the JAVA steps. Then I installed PDANet. Then I restarted GLB because it won't detect the JAVA_HOME variable. Then it got past that error and got the same error as ampos.
Then I restarted the whole PC and it now works perfectly! :)
Cheers
It works now!!!!
:nw: