Cordova: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable

后端 未结 8 681
太阳男子
太阳男子 2020-12-01 05:00

I am having problem to build android with Cordova, when I execute cordova build android, I receive this error:

Error: Android SDK not found. Ma         


        
8条回答
  •  半阙折子戏
    2020-12-01 05:36

    In My Case, This is a Scenario

    1.I have an SDK platforms tools Version 23

    2.I have added the Android Platform to My Cordova Project

    3.It works fines Until I update the SDK to 26

    4.After Updating the SDK it Throws the same Error

    Cordova: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable

    1. I just Resolved this by removing and Adding the Android platforms in my Project

      cordova platform remove android

      cordova platform add android

    2. Now it works fine :)

提交回复
热议问题