I am new to ionic 2 and want to build an apk for my app to android then the error belows shows up. I am using Ubuntu 16.04 and I also had installed android studio and updated all the sdk requirements.
cordova build android - failed! [ERROR] An error occurred while running cordova build android (exit code 1):
ANDROID_HOME=/home/jayzdevera/Android/Sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Error: Could not find an installed version of Gradle either in Android
Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio