Author Topic: Android Compiling error  (Read 106 times)

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Android Compiling error
« on: 2017-Apr-21 »
Its been a while since i did some compiling for android (bout 3 years) but wanted to get back into it. So I grabbed the Java JDK, set the home var, installed the GLB Android platform. Then compiled and got this .....


Code: GLBasic [Select]

_______________________________________
*** Configuration: ANDROID ***
precompiling:
GPC - GLBasic Precompiler V.10.037 SN:4a22a623 - 3D, NET
Wordcount:1069 commands
compile+link:

running glb_build.bat
Using ANDROID_TARGET="android-22"
You can use "E:\GLB\GLBasic\Swoop\distribute\Android\glb_android_build.bat" to change the API level and SDK path.
%ANDROIDSDK% not set. Using GLBasic's default target-22, Android 5.1 (Lollipop
ECHO is off.
androidmanifest.xml:
Make sure to check do a manual check for those.
android:minSdkVersion="10" android:targetSdkVersion="22"
ECHO is off.

AndroidIcons.exe [v21-3-2015] running...
copy E:/GLB/GLBasic/Swoop/icon_36_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-ldpi/icon.png
copy E:/GLB/GLBasic/Swoop/icon_48_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-mdpi/icon.png
copy E:/GLB/GLBasic/Swoop/icon_72_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable/icon.png
copy E:/GLB/GLBasic/Swoop/icon_72_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-hdpi/icon.png
copy E:/GLB/GLBasic/Swoop/icon_96_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-xhdpi/icon.png
copy E:/GLB/GLBasic/Swoop/icon_180_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-xxhdpi/icon.png
copy E:/GLB/GLBasic/Swoop/icon_192_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-xxxhdpi/icon.png
E:/GLB/GLBasic/Swoop/icon_ouya_AndroidExtras.png is missing (732x412 size)
the Ouya icon is not important, if you dont want to support the console
copy E:/GLB/GLBasic/Swoop/icon_ouya_AndroidExtras.png to E:/GLB/GLBasic/Swoop/distribute/Android/res/drawable-xhdpi/ouya_icon.png

Checked AdActivity (intersititals):
Does not uses a AdActivity

Android Extras version (SDLActivity.java):
* 2.11.2

Checking Icons Finished...

BUILD STAGE 2: Start compiler (android.bat)
SDK=Q:\Compiler\platform\android\bin\..\android-sdk-windows
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
[b]ERROR: SWT folder 'lib\x86_64' does not exist.
Please set ANDROID_SWT to point to the folder containing swt.jar for your platform.[/b]
.
[b]BUILD STAGE 3: Build a debug build
Unable to locate tools.jar. Expected to find it in E:\Program Files\Java\jre1.8.0_131\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed[/b]
.
BUILD STAGE 4: Build a release build
Unable to locate tools.jar. Expected to find it in E:\Program Files\Java\jre1.8.0_131\lib\tools.jar
Buildfile: build.xml does not exist!
Build failed
Picked up _JAVA_OPTIONS: -Xms256m -Xmx512m
.
HOW TO INSTALL? Install by invoke this command:
"Q:\Compiler\platform\android\bin\..\android-sdk-windows\platform-tools\adb.exe" install -r "E:\GLB\GLBasic\Swoop\distribute\Android/bin/glbasic-debug.apk"
.
HOW TO SIGN? Sign it by invoke this command:
"Q:\Compiler\platform\android\bin\glb_code_sign.bat" "E:\GLB\GLBasic\Swoop\distribute\Android"
.
Android=E:\GLB\GLBasic\Swoop\distribute\Android
success
_______________________________________
*** Finished ***
Elapsed: 6.0 sec. Time: 11:29
Build: 1 succeeded.


 

Whats the SWT folder its on about ?

And why cant it find the build.xml ?

I assume after that thats why the whole thing fails. Any ideas/suggestions on why/what to do ?

Ta muchly

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3184
    • View Profile
    • Space Fractal
Re: Android Compiling error
« Reply #1 on: 2017-Apr-21 »
try to remove the old distribution first. Its property a issue in the androidmanifest.xml. The SDK is today using Android 5.1 Api.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: Android Compiling error
« Reply #2 on: 2017-Apr-21 »
Sorry, please excuse my ignorance, but how do I remove the old distribution (what is the old distribution ) ?

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3184
    • View Profile
    • Space Fractal
Re: Android Compiling error
« Reply #3 on: 2017-Apr-22 »
\distribute\Android\ in where our game source code is. Im thinks its a issue in androidmanifest.xml using a old none exists SDK.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: Android Compiling error
« Reply #4 on: 2017-Apr-22 »
I tried that and it had no effect :(

Although I cant see how that would help as that folder didnt exist until I tried the compile for android.

This is a new computer with a new install of GLB and new java install. All fresh and new. Please help.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3923
    • View Profile
    • Portfolio
Re: Android Compiling error
« Reply #5 on: 2017-Apr-22 »
Is your sys win 10? Which GLB are you using? Is you java a 32 bit version 7? (mine is 7.0_79)
« Last Edit: 2017-Apr-22 by erico »

Offline spacefractal

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3184
    • View Profile
    • Space Fractal
Re: Android Compiling error
« Reply #6 on: 2017-Apr-22 »
im uses 8 Update 91.
Greedy Mouse - Karma Miwa - Spot Race - CatchOut - Android Extras - is on a vacation trip, home before end of few days in jan.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3923
    • View Profile
    • Portfolio
Re: Android Compiling error
« Reply #7 on: 2017-Apr-22 »
By the looks of it, Minion´s trouble is probably related to the java version.
I think I had the same a long time ago.

Offline Minion

  • Mr. Polyvector
  • ***
  • Posts: 228
    • View Profile
Re: Android Compiling error
« Reply #8 on: 2017-Apr-23 »
Thanks Erico. I swear that oracle site is so un-user friendly. I was sure I grabbed the 32 bit version. But installing java SDK again and it seems to work fine now.

Offline erico

  • Community Developer
  • Prof. Inline
  • ******
  • Posts: 3923
    • View Profile
    • Portfolio
Re: Android Compiling error
« Reply #9 on: 2017-Apr-23 »
I´m glad it works. Give some thanks to Mental Think too as he is responsible for teaching me about compiling to android. :good:
Now that things are working, LET´S SEE SOME CODING! What are you up to on android?