GLBasic forum

Main forum => GLBasic - en => Topic started by: Kyo on 2013-Nov-11

Title: Android problem
Post by: Kyo on 2013-Nov-11
I formatted the PC.
I installed the java: jdk1.7.0_45
I added the path (JAVA_HOME) in the system variables
I installed the android sdk:
GOOGLE USB Driver and Android 4.4 (API19)

but when I compile, it gives me this error before installing it on the device (smartphone)

the PC sees the smatphone (started in debug mode) and allows me to navigate in the folders

Code (glbasic) Select

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


It worked before but can not remember what I forgot to do!
Title: Re: Android problem
Post by: spacefractal on 2013-Nov-11
property a androidmanifest.xml error, which is typical for this kind of issues. try to  delete the distrubtion android folder and try again. Its often works, also which version of glbasic do you use?
Title: Re: Android problem
Post by: Kyo on 2013-Nov-12
Ver: 12

I unistall glb and reinstall but the problem remains.....  :rant:


What can I do?
Title: Re: Android problem
Post by: kanonet on 2013-Nov-12
I get the exact same lines, but the .apk is still created and can get manually installed. Is there no apk for you?
Title: Re: Android problem
Post by: Kyo on 2013-Nov-12
I solved the problem was the driver of the smatphone is not the fault of glb!

Thanks guys  :nw:
Title: Re: Android problem
Post by: spicypixel on 2013-Nov-16
No APK in the bin folder on V12 this is my output. However V11 works?????

Code (glbasic) Select

*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.060 SN:4ebaa1d3 - 3D, NET
Wordcount:2444 commands
compile+link:
running glb_build.bat
Using ANDROID_TARGET="android-8"
You can use "D:\GLBasic Marcus\TF - Snoop (Portrait)\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-8, Android 2.2



BUILD STAGE 1: Compile and pack RELEASE
Updated project.properties
Updated local.properties
Added file D:\GLBasic Marcus\TF - Snoop (Portrait)\distribute\Android\build.xml
Updated file D:\GLBasic Marcus\TF - Snoop (Portrait)\distribute\Android\proguard.cfg

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

Total time: 2 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
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:539: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:568: null returned: 1

Total time: 0 seconds
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
finished Android build-script.
Android=D:\GLBasic Marcus\TF - Snoop (Portrait)\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 23.0 sec. Time: 23:47
Build: 1 succeeded.
Title: Re: Android problem
Post by: Kyo on 2013-Nov-16
I had this error when using Android Extras, but with the V12 version all works fine!

Unistall and reinstall ....
Title: Re: Android problem
Post by: spicypixel on 2013-Nov-16
Hmmm I'm not using Android Extras
Title: Re: Android problem
Post by: erico on 2013-Nov-16
Would you think it could have anything to do with the android system variable?
Title: Re: Android problem
Post by: SnooPI on 2013-Nov-16
Quote from: diego on 2013-Nov-11
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1101: The following error occurred while executing this line:
Q:\Compiler\platform\android\android-sdk-windows\tools\ant\build.xml:1115: exec returned: 1

update your adb.exe with the last version.

spicypixel take http://ant.apache.org/bindownload.cgi (http://ant.apache.org/bindownload.cgi) and put ant folder in : (glbasic folder)\Compiler\platform\android\android-sdk-windows\tools

in fact spicypixel it's (again and again :() a problem with icon, put your android icon in ..\distribute\Android\res\drawable

Title: Re: Android problem
Post by: Kyo on 2013-Nov-16
Look into your working folder if there are png and delete them (it should only icon.png) ....
Title: Re: Android problem
Post by: SnooPI on 2013-Nov-16
you're right diego, this is the best solution  :good:
Title: Re: Android problem
Post by: Kyo on 2013-Nov-16
Very well  :booze:
Title: Re: Android problem
Post by: spicypixel on 2013-Nov-16
Quote from: diego on 2013-Nov-16
Look into your working folder if there are png and delete them (it should only icon.png) ....

Yeh when I compile with GLB 11 I have noticed it moves my androidicon.png at least now I know where it's been placed. However I got the error with GLB 12, now v11 has moved the icon I shall try again. Many thanks, although not sure why it makes any difference whatsoever??????? Seems silly.
Title: Re: Android problem
Post by: spacefractal on 2013-Nov-16
normally im delete the whole distrution android folder (except the manifest.xml file) if issues like that happens. in the SDK upgrade, im also fixed icons for tablet support.