Love to Android
(This guide is mainly for Windows Users. As for Linux/Mac OS users, this are fairly easy.)
Download the Following, place them in a convenient location like C:\AndroidDevelopment\
You will need the following:
- Java Development Kit (JDK) Note: Download the one without Netbeans IDE.
Note: Once downloaded, open SDK Manager and Download:
* Tools * Android SDK Platform-tools * Android SDK Build-Tools Rev 19.1 * Google Play Services * Android 4.4.2 (API 19 and 23 are the minimum versions) * SDK Platform * ARM EABI v7a System Image * Google APIs * Sources for Android SDK * Extras * Android Support Repository * Google USB driver
Android NDK (DOWNLOAD r19c! (Stable) here)
And then git clone the repo.
Configure your paths.
To add in System Paths:
Right Click My Computer/This PC -> Properties -> Advance System Settings -> Environment Variables ->
`Click New, then "Name", Path` (Paths are subject to change, depending on your directory) + new "ANDROID_HOME" -> C:\AndroidDevelopment\Android\sdk + new "ANDROID_NDK" -> C:\AndroidDevelopment\android-ndk-xxx\ + new "ANDROID_SDK" -> C:\AndroidDevelopment\Android\sdk
Then double click
System variables, add a new line, and directory for
- Navigate to the repo's root folder, i.e
local.propertiesfile and edit
- Open a command prompt, go in the repo's directory.
Wait for it to finish, it should run into any error. If so, please let me know.
After it is finished successfully, you can see a
.apk file in
app/build/output/apk/, try that on your phone.
Adding your game!
- You can put your
assetsis not present, create one.
/app/and make relevant changes to
in this example, we will use the package
com.myawesome.flam, you ofcourse change that into your own.
- Edit the following:
<manifest package="com.myawesome.flam"<= very important, you can change that package, be consistent.
android:labelinto your game's name. Also change the one under the
- also under that, change
android:nameinto something like:
android:screenOrientation, either "portrait", "landscape", "sensorLandscape", etc.
- change applicationId with your package name, ie
- Also, create that structure in
- So in my example, it would be
- inside that subdirectory, create the file
MyAwesomeGameActivity.java. Open that file, and change the following:
public class, the name of your FILE and your
android:label, which in this example is
- Don't forget to save your changes.
gradlew buildagain to see build and generate your apk :)