FPLBase
An open source project by
FPL.
|
Set up your build environment for Android builds by following these steps.
sudo apt-get install default-jdk
android-ndk-r10e
.sdk/tools
directory and the Android NDK directory to the PATH variable.Edit
. Add paths similar to the following, adjusted for your install locations: c:\Users\me\AppData\Local\Android\sdk\tools;c:\Users\me\android-ndk
/home/androiddev/adt
and the Android NDK is installed in /home/androiddev/ndk
the following line should be added to ~/.bashrc
.export PATH="$PATH:/home/androiddev/adt/sdk/tools:/home/androiddev/ndk"
~/Library/Android/
and the Android NDK is installed in ~/bin/android_ndk-r10e
the following line should be added to ~/.bash_profile
.export PATH=$PATH:~/bin/android_ndk-r10d:~/Library/Android/sdk/tools
update-java-alternatives
to select the correct Java version.JAVA_HOME
variable to the Java install locationvariable name
to JDK_HOME.variable value
to your Java installation directory, something like C:\Program Files\Java\jdk1.7.0_75
.Additionally, if you'd like to use the handy tools in fplutil,
apt-get
...sudo apt-get install ant
apt-get
...sudo apt-get install python
Using ndk-build
:
Using fplutil
:
Note: The -T debug
, -i
, and -r
flags are optional. The -T
flag sets up debug signing of the app, which allows it to be installed for testing purposes. The -i
flag declares that the script should install the app to a connected device. The -r
flag declares that the app should also be run, after it is installed.