title: Ionic 5 not able to make an apk
body: <p>I am trying to make my apk in ionic by running the below command</p>
  
  <pre><code>sudo ionic cordova build --release android
  </code></pre>
  
  <p>However i get the error </p>
  
  <pre><code>Checking Java JDK and Android SDK versions
  ANDROID_SDK_ROOT=undefined (recommended setting)
  ANDROID_HOME=/home/prot-admin/Documents/android-sdk-linux (DEPRECATED)
  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
  [ERROR] An error occurred while running subprocess cordova.
  
          cordova build android --release exited with exit code 1.
  
          Re-running this
  </code></pre>
  
  <p>I have the required android sdk and java jdk installed. Also i have gradle 5.6.1 installed.
    I am not able to identfy what i am missing still? Please help.</p>