An error occurred building visual studio cordova app using multi-device-hybrid-apps

前端 未结 4 2213
有刺的猬
有刺的猬 2020-12-01 11:20

I am getting 3 fatal errors. I installed the android SDK 19 as well. Any ideas???

An error occurred while listing Android targets

C:\\Project\\AngularJS_To         


        
4条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-01 12:00

    I was getting the same errors. There are three environment variables that must be defined:

    1) %JAVA_HOME% -- C:\Program Files (x86)\Java\jdk1.7.0_55

    2) %ADT_HOME% -- C:\Users\YOUR_NAME_GOES_HERE\AppData\Local\Android\android-sdk

    3) %ANT_HOME% -- C:\apache-ant-1.9.3

    NOTE -- The paths for these programs may be totally different on your PC - You have to figure out the install paths for each.

    Once you have defined these variables then copy the entry below into the Path variable for your user account (I have read elsewhere that it is best to add these to the beginning of the entry and not the end - thats what I did and it worked for me). Reboot PC after making all changes.

    %JAVA_HOME%\bin;%ADT_HOME%\tools;%ADT_HOME%\platform-tools;%ANT_HOME%\bin;
    

    *Taken from the "Installing 3rd party software manually" section in the official documentation.

提交回复
热议问题