ZGameEditor & Android Setting
Moderator: Moderators
ZGameEditor & Android Setting
First of all, congrats for the zgameeditor ^___^, it's one of the best 3d game edtior i have ever seen, sense 3Drad in term of ease, i hope the dev continue to support this awesome game tools.
i'm here to get some insight how i set android setting, especially the Apache Ant Path
sorry if this already mentioned somewhere in the website/forum, i just didn't found it out, also i'm completely new to zgameeditor with android, i'm just coming from yoyogames gamemaker background, and didn't know what apache path referred too yet, sense most 2d game tools don't have have this setting.
thanks an advance. [/b]
i'm here to get some insight how i set android setting, especially the Apache Ant Path
sorry if this already mentioned somewhere in the website/forum, i just didn't found it out, also i'm completely new to zgameeditor with android, i'm just coming from yoyogames gamemaker background, and didn't know what apache path referred too yet, sense most 2d game tools don't have have this setting.
thanks an advance. [/b]
Hi prinsukun,
to build an Android application in ZGE, you must have Ant installed on your machine. Just download it from here, unpack somewhere on disc, eg., C:\Program Files\apache-ant-1.8.4, and type this path (C:\Program Files\apache-ant-1.8.4) to the Settings/Android/Apache Ant Path field. That's it.
to build an Android application in ZGE, you must have Ant installed on your machine. Just download it from here, unpack somewhere on disc, eg., C:\Program Files\apache-ant-1.8.4, and type this path (C:\Program Files\apache-ant-1.8.4) to the Settings/Android/Apache Ant Path field. That's it.
Hi prinsukun,
Just as a sidenote. In order to test your ZGameEditor project on a Android device you can / should use the ZGE Android debugger ( which doesn't require the Android SDK nor Java ). Make sure to check out this video tutorial.
Obviously, when you're done with a project and want to submit it to the Google Play store, you do want / need to build a signed standalone .apk
K
Just as a sidenote. In order to test your ZGameEditor project on a Android device you can / should use the ZGE Android debugger ( which doesn't require the Android SDK nor Java ). Make sure to check out this video tutorial.
Obviously, when you're done with a project and want to submit it to the Google Play store, you do want / need to build a signed standalone .apk
K
Hi prinsukun,
your java cannot be found by ANT. Just make sure that the environment variable JAVA_HOME points to the correct path. Just to be sure even more, you can also define additional environment variables pointing to the corresponding paths: ANDROID_SDK_HOME, ANDROID_HOME (the same path as ANDROID_SDK_HOME), ANDROID_NDK_ROOT, and ANT_HOME. %JAVA_HOME%/bin and %ANT_HOME%/bin can be added to the PATH variable.
As Kjell pointed out, this is really necessary only if you want to create own apk files, for zzdc.dat used for debugging/testing Java, ANT, SDK are not required.
your java cannot be found by ANT. Just make sure that the environment variable JAVA_HOME points to the correct path. Just to be sure even more, you can also define additional environment variables pointing to the corresponding paths: ANDROID_SDK_HOME, ANDROID_HOME (the same path as ANDROID_SDK_HOME), ANDROID_NDK_ROOT, and ANT_HOME. %JAVA_HOME%/bin and %ANT_HOME%/bin can be added to the PATH variable.
As Kjell pointed out, this is really necessary only if you want to create own apk files, for zzdc.dat used for debugging/testing Java, ANT, SDK are not required.
@Kjell thank you so much, this method will save me a lot of time for each time i want test my apps ;D, thanks for the link too as well.
@Rado1
I already believed i installed JDK, and not have deep knowledge how i set the path or where i should refered that ?
but for the odd reason my system won't recognized when i type javac despite it's already installed.. at cmd, my os is windows7 64-bit, i just goggled and it's seem many folks having a similar problem, i tried set path manually at advanced properties, reinstalling, restart my system but no luck, but i guess i will try to follow this article, might help, i do i still need to publish an apk:
http://www.coderanch.com/t/531940/java/ ... gram-batch
I appreciated your help guys, thanks
@Rado1
I already believed i installed JDK, and not have deep knowledge how i set the path or where i should refered that ?
but for the odd reason my system won't recognized when i type javac despite it's already installed.. at cmd, my os is windows7 64-bit, i just goggled and it's seem many folks having a similar problem, i tried set path manually at advanced properties, reinstalling, restart my system but no luck, but i guess i will try to follow this article, might help, i do i still need to publish an apk:
http://www.coderanch.com/t/531940/java/ ... gram-batch
I appreciated your help guys, thanks
Hi guys,
From time to time, I'm still trying to build an apk... I have the lastest adt-bundle-windows-x86 and apache-ant-1.9.3 installed, with their paths correctly set in the settings, and I've also installed JDK1.7.0_55
But it says:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Why does it search for tools.jar in JRE instead of JDK? Where can I set that?
Is there any clear tutorial about how to compile an apk with ZGE? I mean, step by step
Thanks a lot!
From time to time, I'm still trying to build an apk... I have the lastest adt-bundle-windows-x86 and apache-ant-1.9.3 installed, with their paths correctly set in the settings, and I've also installed JDK1.7.0_55
But it says:
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\lib\tools.jar
Why does it search for tools.jar in JRE instead of JDK? Where can I set that?
Is there any clear tutorial about how to compile an apk with ZGE? I mean, step by step
Thanks a lot!
Go to Control Panel, search for View advanced system settings, open the dialog, select Advanced tab, press the Environment Variables... button, and add there a new system variable JAVA_HOME or modify existing one, if it already exists.Ats wrote:Hi Rado1, I've read your last post telling that I we have to set paths, but like prinsukun, I don't know where to do that. Is that in a file of the ANT folder?
Hi guys,
Basically what Rado said .. in images ( using Windows 7 )
1 - Right-click on Computer and select Properties.
2 - Click on "Advanced system settings".
3 - Click the "Environment Variables" button.
4 - Click the New button in the System variables group.
5 - Fill in the variable fields and click OK.
K
Basically what Rado said .. in images ( using Windows 7 )
1 - Right-click on Computer and select Properties.
2 - Click on "Advanced system settings".
3 - Click the "Environment Variables" button.
4 - Click the New button in the System variables group.
5 - Fill in the variable fields and click OK.
K
Thanks Rado1 and Kjell
I wasn't thinking of Windows environment variables because I've been using linux for years now, and switch to Windows only for that kind of silly things...
So it's almost working, I have one last error, but I think I've read something about that somewhere on the forum. I'm browsing it right now.
BUILD FAILED
C:\Program Files\adt-bundle-windows-x86\sdk\tools\ant\build.xml:542: Unable to resolve project target 'android-8'
I wasn't thinking of Windows environment variables because I've been using linux for years now, and switch to Windows only for that kind of silly things...
So it's almost working, I have one last error, but I think I've read something about that somewhere on the forum. I'm browsing it right now.
BUILD FAILED
C:\Program Files\adt-bundle-windows-x86\sdk\tools\ant\build.xml:542: Unable to resolve project target 'android-8'
You need to install Android SDK for Android 2.2. Go to the Android SDK Manager (located e.g. in "C:\Program Files\ADT\sdk\SDK Manager.exe"), and install the related SDK Platform. But if you are compiling for OUYA, install Android 4.1.2 (API 16) SDK Platform and change ZApplication.AndroidSdk property in your ZGE project to 4.1.Ats wrote:BUILD FAILED
C:\Program Files\adt-bundle-windows-x86\sdk\tools\ant\build.xml:542: Unable to resolve project target 'android-8'