Just a few comments on my investigation about building and installing Android application.

In Linux go to root folder of your application and write something like:

./gradlew build

build means build.gradle actually, or something like  ./gradlew assembleDebug, with that you will build application with debug type. Check the source in /app/build.gradle.

After building we can install application with command like:

adb install -d -r myApp.apk

Where:

-d Direct an adb command to the only attached USB device.
-r Reinstall an exisiting app, keeping its data.