应用程序编译时出错(visual studio)

时间:2016-03-04 08:41:00

标签: android cordova visual-studio-2015

当我使用cordova测试在visual studio中创建的Ripple Simulator应用时,它运行正常,但是一旦我尝试为我的Android设备构建它,它就会显示以下错误:

Errore  BLD10205    [Error: Please install Android target: "android-22". 
Hint: Open the SDK manager by running: C:\Program\ Files\ 
(x86)\Android\android-sdk\tools\android.BAT You will require: 1. "SDK 
Platform" for android-22 2. "Android SDK Platform-tools (latest) 3. 
"Android SDK Build-tools" (latest)] Command finished with error code 2: cmd 
/s /c ""C:\Users\Giulia\Documents\Visual Studio 
2015\Projects\BlankCordovaApp2\BlankCordovaApp2\platforms\android\cordova\b
uild.bat" --release "--buildConfig=C:\Users\Giulia\Documents\Visual Studio 
2015\Projects\BlankCordovaApp2\BlankCordovaApp2\build.json"" ERROR building 
one of the platforms: Error: cmd: Command failed with exit code 2   
BlankCordovaApp2

我无法弄清楚如何解决它!有什么建议吗?

1 个答案:

答案 0 :(得分:2)

检查Android SDK Manager。它应该是这样的:

enter image description here

并为你Android SDK Build-tools

enter image description here