Android problem

Previous topic - Next topic

Kyo

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!

spacefractal

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?
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

Kyo

Ver: 12

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


What can I do?

kanonet

I get the exact same lines, but the .apk is still created and can get manually installed. Is there no apk for you?
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Kyo

I solved the problem was the driver of the smatphone is not the fault of glb!

Thanks guys  :nw:

spicypixel

#5
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.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

Kyo

I had this error when using Android Extras, but with the V12 version all works fine!

Unistall and reinstall ....

spicypixel

Hmmm I'm not using Android Extras
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

erico

Would you think it could have anything to do with the android system variable?

SnooPI

#9
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 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


Kyo

Look into your working folder if there are png and delete them (it should only icon.png) ....

SnooPI

you're right diego, this is the best solution  :good:

Kyo


spicypixel

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.
http://www.spicypixel.net | http://www.facebook.com/SpicyPixel.NET

Comps Owned - ZX.81, ZX.48K, ZX.128K+2, Vic20, C64, Atari-ST, A500.600.1200, PC, Apple Mini-Mac.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/