LUKIYA'S NEVERLAND

春去秋来,花谢花开。


使用Xamarin.Forms做Zebra打印App时,如果你引用了LinkOS_Xamarin_SDK,iOS和UWP没有大问题。

但是你的Android程序会编译报错,提示 java.lang.OutOfMemoryError. Consider increasing the value of $(JavaMaximumHeapSize)

这时需要将JavaMaximumHeapSize设置为4G。但是再编译时,又会报java.exe" exited with code 2.错误。

研究了半天,发现只要把Enable Multi-DEX勾上就一切OKay了。