Hi there, I don't know if this was already mentioned here, but I just wanted to share this with you.
After struggling around with Eclipse for a week now, unable to export my Gideros projects to my Android phone, I was near to give up and switch back to iOS development again. Then I fortunately found this simple method to build and deploy a Gideros project with literally one click only! This solution worked immediately for me. Thanks to the guys from biorythm games:
http://biorhythmgames.com/post/36099483258/one-click-android-deployment-for-giderosThis guide explains how to set up Gideros once to export a simple .bat file along with your project. After exporting the project, just double-click this bat file and all is done automatically!!!
It can be as simple! Just follow the instructions on that page and make sure that
- Your phone is set to USB debugging mode and connected properly to your PC
- Environment variable named JAVA_HOME is set on your Windows machine. Set the value of this variable to the path of the Java SDK on your PC (in my case C:\Program Files\Java\jdk1.7.0_25).
Comments
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
http://artleeapps.com/
Bubble Adventure - Colors
The difference between the extended .bat file and the original one are:
- A keystore file is generated and saved in the project's dir.
- A file named ant.properties is generated and saved in the project's dir (which contains data about the keystore generated and is required by ant when building a self-signed release)
- Then Ant is called with the -release option instead of the -debug option.
I also placed the extended script in Gidero's templates folder, so when I export my project I can choose wether to use the exported build.bat to build a debug version or the build_release.bat to build a release version from it.
This works quite well, but since I am still new to this topic I wonder if you have any suggestions using this method.
Instructions:
Just download the attached modified build_release.bat file and place it in the same folder as the build.bat file above (Gideros\Templates\Eclipse\Android Template):
Open it with a text editor and adjust the settings / pathes on top of the file to your needs:
SET keytoolPath="C:\Program Files\Java\jdk1.7.0_25\bin\keytool.exe"
SET appName=MyAppName
SET keyPass=MyPassword
SET storePass=MyPassword
SET issuerData="CN=John Doe, OU=Development, O=MyCompany,L=MyCity, ST=MyState, C=US"
When you export your Gideros project then, it also exports a build_release.bat file in your project dir now. Since you need to use different keys for your different projects, open the .bat file with a text editor before executing it and enter a desired keystore name and password that should be used with this project. Then double-click the .bat and a release .apk should be generated (located in the /bin folder of your project).
I tested it and it worked well -but are there any disadvantages using this method? Or could we even more simplify this process?
Likes: Fiam, bali001
Would like to have another option as to work with eclipse , as its the worst IDE i'v seen
Likes: OZApps
http://developer.android.com/sdk/installing/studio.html
@ar2rsawseen, isn't Android Studio also a custom version of Eclipse
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[aapt] C:\Users\Asus\Documents\Visual Studio 2010\Projects\giderosman\giderosman\bin\Debug\2x\ElementalClash\bin\AndroidManifest.xml:2: error: No resource identifier found for attribute 'installLocation' in package 'android'
[aapt] C:\Users\Asus\Documents\Visual Studio 2010\Projects\giderosman\giderosman\bin\Debug\2x\ElementalClash\bin\AndroidManifest.xml:14: error: No resource identifier found for attribute 'xlargeScreens' in package 'android'
[aapt] C:\Users\Asus\Documents\Visual Studio 2010\Projects\giderosman\giderosman\bin\Debug\2x\ElementalClash\bin\AndroidManifest.xml:20: error: Error: String types not allowed (at 'configChanges' with value 'keyboard|keyboardHidden|orientation|screenSize').
anyone knows why?
by higher target, do you mean the targetsdkversion? i had it set to 18, which is default from gideros latest version, right?
This is great is this possible to work on a Linux system that is running wine?
Thanks a lot.
---------------------------------------
http://www.cloudbees.com/event/how-set-continuous-integration-mobile-apps-using-real-devices
I just tried too, same issue. Im using Android studio, what are you using Zizanyman?
Fixed using eclipse and android SDK (not android studio) on my other PC: it was saying it was missing the tools.jar file in "C:\Program Files\Java\jre1.8.0_31\lib" (or x86 if u are using 32bit)
So I took the tools.jar out of "C:\Program Files\Java\jdk1.8.0_31\lib" and put it in "C:\Program Files\Java\jre1.8.0_31\lib" and it built successfully to the phone.