xamarin遇到的问题

1.提示:找不到设备

原因:没有安装手机usb驱动。

解决办法:我的电脑---->/管理-->设备管理--->安装手机驱动


2.Could not create the Android package. See the Output (Build) window for more details.
adroid 安装的  sdk\tools  目录下没有zipalign.exe

解决办法:拷贝  zipalign.exe文件到adroid 安装的  sdk\tools  目录下


3.Deployment failed because the FastDev assembly directory could not be created.4
Deployment failed. FastDev directory creation failed.

解决办法如下:



                                     xamarin遇到的问题_第1张图片         xamarin遇到的问题_第2张图片

packaging  and deployment  下面的两个选项不要选。




4.无法打开.axml

xamarin遇到的问题_第3张图片

原因:android api版本和 xamarin 版本不匹配

解决方案:降低Android api版本号.如图选择版本号,这里只提示sdk\platforms目录最高的一个版本号,具体原因不清楚。

如果想降低版本号请在sdk\platforms目录下面将高于要设定的AndroidAPI 版本目录删除。

 

xamarin遇到的问题_第4张图片






5.运行程序提示: built with evaluation software. this build will only work for 24 hours.

原因:你登录了免费注册的xamarin账号

解决办法破解xamarin;

有待验证

下载破解包:http://pan.baidu.com/s/1bnlc2vX,密码:43dg,里面有破解步骤。


破解之后可能出现以下错误

原因:你登录了免费注册的xamarin账号

解决办法:注销xamarin账号

注销: xamarin studio-->工具-->account




你可能感兴趣的:(Android)