Corona SDK : Getting start for Android

Corona SDK : Getting start for Android

Test on:
- Mac OS X El Capitan
- Asus Zenfone 4.5
- Android SDK
- Corona SDK [download] https://coronalabs.com/


This is a guide for beginner and not known anything about Corona SDK, yeah! me too. So i just want to see stuff Corona SDK publish game to my Android device and make me faith to use this till complete project.

Let's get start!!

[Create new project]
1. Download Corona SDK from official site here: https://coronalabs.com/ , install it from their instruction then launch Corona Simulator [see, an icon image below].


2. After launch Corona Simulator, you should see launcher like below then click on "NEW PROJECT".


3. The properties for new project configuration dialog will open, let's type your "Project Name", and under "Choose a template" check on "Game" because i want to see a game on my android device recently after publishing. Then click "Next".


4. Your project need to be save on some place, i just create "new folder" and gave their name as project name then click "Create".


5. Your project was created successful. Click on "Open in Editor...".


6. It's choose your code editor automatic and open your "main.lua" file.


7. See on Dock and click "Corona Simulator" icon, if you see a BIG!! simulator on screen like this and want to change their size (I'm really sure to change it.).


8. Goto "Window > View As" and choose your proper size for you (I'm choose NexusOne - 480x800)


9. Your simulator looking Gooooood!


[Setting build environment for Android]
Quit Corona Simulator and Open Terminal and type "launchctl setenv ANDROID_SDK [path to your android sdk]". And press enter. (This setting require once for your machine).



[Publish on Android device] 
1. Connect your android device vis usb and don't forget to allow "Unknown sources" in setting.

2. Re-Open Corona Simulator and open your project.


3. Goto Corona Simulator, "File > Build > Android..."


4. Build setting dialog for android will open, check your detail and edit "Package" as you want and "After Build" choose "Copy to device and launch" (It's maybe not launch but success installed).


5. Click "Build" and wait a while for processing build and install on android device.


*if you not setting Android SDK path for Corona SDK, this error will occur like below, see on section [Setting build environment for Android].


 6. When it's completed, you should see on Terminal last line is "Success" and dialog "Device Installation Complete" (It's maybe not launch on device, take a look by yourself).



7. Take a look on your android device, (find grey small "icon") and launch it.




It's work :)

Comments