GLBasic forum

Main forum => GLBasic - en => Topic started by: UBERmonkeybot on 2015-Dec-01

Title: Errors whilst compiling for android
Post by: UBERmonkeybot on 2015-Dec-01
Hi Guys,I am getting Errors whilst compiling for android

At stage 4 i get .

BUILD STAGE 4: Build a release build
   [subant] No sub-builds to iterate on

BUILD FAILED
C:\NEW_GLBasic_v14\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:649: The following error occurred while executing this line:
C:\NEW_GLBasic_v14\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:694: null returned: 1



I have investigated the XML file but can't work out why it is failing

compiling for  win is fine so i know the code works.
Title: Re: Errors whilst compiling for android
Post by: MrTAToad on 2015-Dec-01
Do you have the 32-bit version of Java installed, along with the Java SDK ?  If so, do you have the pathing correct (including the system variables set) ?
Title: Re: Errors whilst compiling for android
Post by: UBERmonkeybot on 2015-Dec-01
As far as i know,other projects seem to compile ok.

Code (glbasic) Select
SETSCREEN 1280,800,0
// SETCURRENTDIR("Media") // go to media files
LOCAL bs=128
FOR x= 0 TO 9
Box (x*bs,0,bs,bs,0xff0000,0,0)
NEXT
SHOWSCREEN
MOUSEWAIT
END


FUNCTION Box: x,y,xSize,ySize,colour,rotation,fill


SELECT fill
CASE 0
//DRAWLINE x-(xSize/2),y-(ySize/2),x+(xSize/2),y-(ySize/2),colour
//DRAWLINE x+(xSize/2),y-(ySize/2),x+(xSize/2),y+(ySize/2),colour
//DRAWLINE x+(xSize/2),y+(ySize/2),x-(xSize/2),y+(ySize/2),colour
//DRAWLINE x-(xSize/2),y-(ySize/2),x-(xSize/2),y+(ySize/2),colour
DRAWLINE x,y,x+xSize,y,colour
DRAWLINE x+(xSize),y,x+(xSize),y+(ySize),colour
DRAWLINE x+(xSize),y+(ySize),x,y+(ySize),colour
DRAWLINE x,y,x,y+(ySize),colour
// CASE 1
// LOCAL yy
// FOR yy=-(ySize/2) TO (ySize/2)
// DRAWLINE x-(xSize/2),y+yy,x+(xSize/2),y+yy,colour
// NEXT
ENDSELECT
ENDFUNCTION // BOX
Title: Re: Errors whilst compiling for android
Post by: spacefractal on 2015-Dec-01
Property its a issue in Androidmanifest.xml, or extras unknown files, due downgradring Android Extras.

By default error report is disabled, but is enabled with newer Android Extras.

Android Extras also support new sizes of icons, required by newer devices. This might fails compiling with older AE due that.

If that happens, then you might try to delete all files in the distribute\Android folder and let it recreate it again.