每次构建时,都会出现以下错误。我是Visual Studio中的Cordova的新手。我实际上尝试过先为VS2013安装。我下载了VS 2015 RC社区,并试图开始该项目。但是我收到以下消息。
尝试1:我尝试进入options> Cordova的VS工具>并清除缓存。
尝试2:我已经验证了Android SDK的正确路径。
尝试3:我下载了Android Studio,以为它神奇地加载了我没有的Android机密文件。
这三个都失败了!帮助!
EDIT: I downloaded the Android Stand-alone SDK Tools and payed close attention to the path they were installing in. I notice that these were installing in the AppData folder on my machine and not the C:\Program Files x86....android sdk folder. I referenced this new folder and it seems to be working.
Note that these are warnings, not specific build errors. These messages are telling you that you have not installed some specific Android SDK components (not necessarily the Android SDK manager or tools as a whole which is what the link on the Android site gives you). In particular, you need updated build tools and the Android API level 21 SDK. If you have a more recent version of the build tools you are probably fine but missing the specific Android SDK mentioned can cause builds to fail. Each version of Cordova has different SDK version requirements. (4.3.0 uses 21 while 5.0.0 uses 22.)
To install, open the Android SDK manager (which should be in your start menu if you allowed VS to install the SDK for you or see here for its location if you did not).
Then, be sure the following are then checked and click install:
首先是构建工具版本:
然后至少是API级别21的“ SDK平台”。如果要访问仿真器映像,还可以检查整个类别。还要注意,尽管在SDK管理器中出现了这个名称,但是给定的SDK可以让您定位各种设备。像“ 5.0.1”这样的版本只是告诉您,SDK使您可以选择在本机代码中使用该版本的Android可用的API。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句