期望类路径分隔符';'在参数编号8中的'\ Android \ android-sdk \ build-tools \ 23.0.1 \ lib \ shrinkedAndroid.jar'之前 [英] Expecting class path separator ';' before '\Android\android-sdk\build-tools\23.0.1\lib\shrinkedAndroid.jar' in argument number 8
问题描述
使用VS 2015进行Xamarin开发时,当我尝试构建一个已选中Enable Multi-Dex的Android项目时,出现以下错误:-
Using VS 2015 for Xamarin development, when I attempt to build an Android project which has Enable Multi-Dex checked, I get the following error :-
期望类路径分隔符';'前'\ Android \ android-sdk \ build-tools \ 23.0.1 \ lib \ shrinkedAndroid.jar'参数数字8
Expecting class path separator ';' before '\Android\android-sdk\build-tools\23.0.1\lib\shrinkedAndroid.jar' in argument number 8
知道为什么会发生这种情况以及如何解决吗?
Any idea why this might be happening and how to resolve it?
推荐答案
如果您的SDK位置路径中包含空格,则生成过程将导致此问题.
If your path to SDK location contains space, the build process will cause this issue.
例如:如果SDK位置为`C:\ Program Files \ Android \ android-sdk,则它具有程序和文件之间的空格.
如果您的SDK位于 Program Files
中,则通过删除空间对其进行重命名将不可行.因此,将SDK文件夹复制到其他位置,例如 C:\ Android \
&将Visual Studio中的Android SDK路径设置为新的位置.
If your SDK is in Program Files
renaming it by removing the space won't be feasible. So copy the SDK folder to some other location say C:\Android\
& set the Android SDK Path in Visual Studio to the new Location.
要在Visual Studio中更改Android SDK位置,请依次选择工具"->选项"->"Xamarin"->"Android设置"->"Android SDK位置(更改)"
这篇关于期望类路径分隔符';'在参数编号8中的'\ Android \ android-sdk \ build-tools \ 23.0.1 \ lib \ shrinkedAndroid.jar'之前的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!