GLBasic forum

Main forum => GLBasic - en => Topic started by: ChristianB on 2012-Apr-18

Title: Problem when compiling to Android
Post by: ChristianB on 2012-Apr-18
Hi when I compile my (first) game to Andriod, I get the following error message:
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.104 SN:86a45f58 - 3D, NET
Wordcount:145 commands
compile+link:
running Android build-script...
BUILD STAGE 1: Compile and pack RELEASE
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:771: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:787: null returned: 1

Total time: 3 seconds
.
BUILD STAGE 2: Build DEBUG and install on device
     [echo] Gathering info for glbasic...
     [echo] Creating output directories if needed...
     [echo] ----------
     [echo] Handling aidl files...
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...

BUILD FAILED
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:771: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:787: null returned: 1
Total time: 3 seconds
finished Android build-script.
Android=L:\Code\GLBasic\BubblePop\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 12.7 sec. Time: 14:39
Build: 1 succeeded.

I have tried to compile and run the sample OneMore with success (in Emulator), so my development environment seems ok.

Environment:
Windows 7 64 bit
GLBasic IDE, Version: 10.202 (Preemium version )
Android SDK Tools 1.16
Java JDK 1.6.0.310 32 bit (I have tried the newest version on another computer with same result)
Best Regards
Christian
Title: Re: Problem when compiling to Android
Post by: MrTAToad on 2012-Apr-18
Some things that are worth checking :

A)  Make sure the icon.png file is present with the project
B)  Make sure no invalid characters are in company name
C)  Make sure company name is present.
Title: Re: Problem when compiling to Android
Post by: ChristianB on 2012-Apr-18
Hi, thanx for your suggestion, but there is a icon.png in project folder. Company name i set to the 3 characters:sos
And I still have the problem...
Regards
Christian
Title: Re: Problem when compiling to Android
Post by: Kitty Hello on 2012-Apr-18
Click the trashcan icon and retry then?
Title: Re: Problem when compiling to Android
Post by: ChristianB on 2012-Apr-18
Project/Clean up worked!
Regards
Christian
Title: Re: Problem when compiling to Android
Post by: MrTAToad on 2012-Apr-18
Yes, the cleaning bit is important.