打包时遇到2个坑:
1:无法加载安卓SDK:
将sdk文件夹中bulid-tools/androi-4.4W中的zipalign.exe拷贝到tools文件夹中就可以解决这个问题,我也是被折磨了好久才找到这个答案的。
2.版本不适配,报错如下:
Type `UnityEngine.Component' does not contain a definition for `velocity' and no extension method `velocity' of type `UnityEngine.Component' could be found (are you missing a using directive or an assembly reference?)
解决办法:
因为Unity版本不断升级,现在已经是5.xx版本,所以相应的也要下载新的安卓SDK版本,对应的是安卓5.0以上版本,下载一个5.0的安卓SDK就OK