Cordova Error

Tagged: ,

This topic contains 4 replies, has 3 voices, and was last updated by  Scott Lang 2 weeks, 1 day ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19692

    Hugo Acosta
    Participant

    Hi,

    I’m trying to build the Android apk but, I get this error:

    Failed to find ‘ANDROID_HOME’ environment variable. Try setting it manually.
    Failed to find ‘android’ command in your ‘PATH’. Try update your ‘PATH’ to include path to valid SDK directory.

    [ERROR] An error occurred while running subprocess cordova.
    cordova build android –release exited with exit code 1

    I tryed several solutions but I get the same error.. I’m missing something?. I really need help with this please.

    #19704

    Alex
    Keymaster

    Issue seems to be connected with Java or android studio environment variables .

    Please make sure that you have installed and setup android studio in your system .

    I found one relatable link to configure the paths :

    https://stackoverflow.com/questions/36198165/failed-to-find-android-home-environment-variable

    #19721

    Hugo Acosta
    Participant

    Yes, It was the solution but… I still get this error:

    [ERROR] An error occurred while running subprocess cordova.
    cordova build android –release exited with exit code 1

    I search solutions but the only I can do is uninstall Cordova and install Cordova again.. but the error remain.

    #19886

    Scott Lang
    Keymaster

    Hi,

    Which command you are using ,

    You can use ionic cordova build android command to build android debug app.

    #19887

    Scott Lang
    Keymaster

    And also
    is that your ionic serve works for app ??

    Also you can do first remove android platform and then add  it

    cordova platform rm android

    cordova platform add [email protected]

     

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

Template Design © VibeThemes. All rights reserved.