To build apk you need to install Android SDK.
and you have to create a file named local.properties in the root directory of the project.
in there you put sdk.dir=/path/to/Android/Sdk and save.
After that you go in terminal in the root directory of the project.
and give the following command ./gradlew build
the build is found in the folder debug or release in