Author Topic: Problem when compiling to Android  (Read 1398 times)

Offline ChristianB

  • Mc. Print
  • *
  • Posts: 10
    • View Profile
Problem when compiling to Android
« 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

MrTAToad

  • Guest
Re: Problem when compiling to Android
« Reply #1 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.

Offline ChristianB

  • Mc. Print
  • *
  • Posts: 10
    • View Profile
Re: Problem when compiling to Android
« Reply #2 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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10728
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: Problem when compiling to Android
« Reply #3 on: 2012-Apr-18 »
Click the trashcan icon and retry then?

Offline ChristianB

  • Mc. Print
  • *
  • Posts: 10
    • View Profile
Re: Problem when compiling to Android
« Reply #4 on: 2012-Apr-18 »
Project/Clean up worked!
Regards
Christian

MrTAToad

  • Guest
Re: Problem when compiling to Android
« Reply #5 on: 2012-Apr-18 »
Yes, the cleaning bit is important.