Android not compiling

Previous topic - Next topic

ampos

Strange, 2 days ago I can compile for Android with no problems, but now, witout touching anything, I can compile...

Quote_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:90a22027 - 3D, NET
Wordcount:1704 commands
compile+link:
running Android build-script...
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...
     [echo] Converting compiled files and external libraries into D:\Programas\GLBasic\Proyectos\GlowingSky\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\GlowingSky\distribute\Android\bin\glbasic-unsigned.apk manually
     [echo] and run zipalign from the Android SDK tools.

BUILD SUCCESSFUL
Total time: 6 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...
     [echo] Converting compiled files and external libraries into D:\Programas\GLBasic\Proyectos\GlowingSky\distribute\Android\bin\classes.dex...
     [echo] Packaging resources
     [echo] Running zip align on final apk...
     [echo] Debug Package: D:\Programas\GLBasic\Proyectos\GlowingSky\distribute\Android\bin\glbasic-debug.apk
     [echo] Installing D:\Programas\GLBasic\Proyectos\GlowingSky\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:641: 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: 7 seconds
finished Android build-script.
Android=D:\Programas\GLBasic\Proyectos\GlowingSky\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 21.9 sec. Time: 03:19
Build: 1 succeeded.

Quote*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:90a22027 - 3D, NET
"Sandscape.gbas"(189) warning : probably unassigned variable : fin
"Sandscape.gbas"(194) warning : probably unassigned variable : mx
"Sandscape.gbas"(194) warning : probably unassigned variable : my
"Sandscape.gbas"(194) warning : probably unassigned variable : b1
"Sandscape.gbas"(194) warning : probably unassigned variable : b2
"Sandscape.gbas"(246) warning : probably unassigned variable : Rrgb
"Sandscape.gbas"(426) warning : probably unassigned variable : sx
"Sandscape.gbas"(426) warning : probably unassigned variable : sy
"Sandscape.gbas"(560) warning : probably unassigned variable : vv
"Sandscape.gbas"(774) warning : probably unassigned variable : piu
Wordcount:794 commands
compile+link:
running Android build-script...
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...

BUILD FAILED
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:310: null returned: 1

Total time: 1 second
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...

BUILD FAILED
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:310: null returned: 1

Total time: 1 second
finished Android build-script.
Android=D:\Programas\GLBasic\Proyectos\Sandscape\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 7.4 sec. Time: 03:20
Build: 1 succeeded.

check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Sixth Sense

I had a similar problem last week and posted it at this link:

http://www.glbasic.com/forum/index.php?topic=7385.msg60832#msg60832

Minion solved my problem by suggesting I tried uninstalling and reinstalling GLB. Don't ask me why - but it worked.

May not be the problem in your case but worth a go.


Okay, It's been more than ten years now so I confess............I let the dogs out!

Ian Price

The uninstalling/re-installing issue was due to old libraries (or something etc.)not being written over/replaced by newer ones wasn't it? Didn't Gernot say he'd fixed that problem. However, it's definitely worth a try if something worked in the last update, but not in this one.
I came. I saw. I played.

MrTAToad

#3
Is there a space in the path ?  Try cleaning too...

ampos

#4
I have try a install over the same path, a new install,... no luck

I have marked in red the errors I am getting.

Perhaps some update in windows? In java?

I have rolled back to some previous versions of GLB and got same error.

My latest Java update was 26-nov, and there are 2 windows updates 7-dec and 8-dec (according to Windows restore), and my last Android compile was 10-dec (the date on the /bin/prog.apk)

As I said, there is no aparent reason why it has stopped working. And it is driving me crazy.
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

try uninstalling glbasic, and delete the c:\program.. \glbasic directory afterwards.
Reinstall. Next, clean (trashcan icon) the project and rebuild.

Also, stage 1 compile seems ok - it just can't install on your device. Is it connected, usb debugging active, drivers installed?

MrTAToad

You aren't using  Java 1.7 are you ?

ampos

This is driving me crazy... now it only fails with 1 app:


Code (glbasic) Select
_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:90a22027 - 3D, NET
"Sandscape.gbas"(188) warning : probably unassigned variable : fin
"Sandscape.gbas"(193) warning : probably unassigned variable : mx
"Sandscape.gbas"(193) warning : probably unassigned variable : my
"Sandscape.gbas"(193) warning : probably unassigned variable : b1
"Sandscape.gbas"(193) warning : probably unassigned variable : b2
"Sandscape.gbas"(245) warning : probably unassigned variable : Rrgb
"Sandscape.gbas"(431) warning : probably unassigned variable : sx
"Sandscape.gbas"(431) warning : probably unassigned variable : sy
"Sandscape.gbas"(565) warning : probably unassigned variable : vv
"Sandscape.gbas"(779) warning : probably unassigned variable : piu
Wordcount:794 commands
compile+link:
running Android build-script...
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...

BUILD FAILED
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:310: null returned: 1

Total time: 1 second
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...

BUILD FAILED
D:\Programas\GLBasic\Compiler\platform\android\android-sdk-windows\tools\ant\main_rules.xml:310: null returned: 1

Total time: 1 second
finished Android build-script.
Android=D:\Programas\GLBasic\Proyectos\Sandscape\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 7.3 sec. Time: 01:30
Build: 1 succeeded.


Of course, I did the clean and all...
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

ampos

I copy somefile of proyect to a new proyect and now it compiles....  :S
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

erico

strange really, it seems like my caanoo´s projects...it will only compile on the projects it compiled already, but in my case, new projects, flush or re-install won´t do...gotta get harder into it to figure out, I must be doing something loony... ;)

Kitty Hello

had a number character in the project name?