ERROR An error occurred while running cordova build android exit code 1

0

Hello I am a student of Software Engineering, I am trying to develop hybrid applications software, I am having problems to build the application software created in Ionic 1. I am using Linux Debian 9 (testing) with NodeJS - v6.11.3 , Cordova - 7.0.1 and Ionic 3.12. 0 . Also I have installing the Android Studio - 2.3.3 , fully updated and running perfectly with the following parameter in the environment variable (/ ete / profile) containing the path to Android SDK: ANDROID_HOME = / home / dion / Android / Sdk NODE_PATH = / usr / local / lib / node_modules PATH = $ PATH: $ ANDROID_HOME / home / dion / Android / Sdk: $ ANDROID_HOME / tools export ANDROID_HOME export PATH

The command: $ ionic cordova platform add android

Returns works perfectly, gives the following return: Running command - done!

Already the build command: $ ionic cordova build android

It displays the following output:

--- START OF THE OUTPUT --- [WARN] Not performing Ionic build for project type: ionic1.

  

ionic cordova prepare android   cordova prepare android   Running command: /home/dion/Workspace/tci/appPersona/hooks/after_prepare/010_add_platform_class.js / home / dion / Workspace / tci / appPersona

add to body class: platform-android

  

cordova build android   ✖ Running command - failed!   [ERROR] An error occurred while running cordova build android (exit code 1):

    Running command: 
    /home/dion/Workspace/tci/appPersona/hooks/after_prepare/010_add_platform_class.js 
    /home/dion/Workspace/tci/appPersona
    add to body class: platform-android
    ANDROID_HOME=/home/dion/Android/Sdk
    JAVA_HOME=/usr/lib/jvm/jdk-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

--- END OF EXIT ---

I'm grateful, right now, for everyone's help.

Thank you

    
asked by anonymous 23.09.2017 / 19:52

0 answers