背景

新建的 Xamarin 项目,编译失败。

[Xamarin] - "GenerateJavaStubs" 异常之解决

Error The "GenerateJavaStubs" task failed unexpectedly.
Error The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. Demo_Xamarin_HelloWorld.Android

原因

默认项目路径在C:\Users\Administrator\Documents\Visual Studio 2017\Projects\下,超出了Windows系统的长路径限制(MAX_PATH为260个字符)。

解决

更新项目为短路径即可。

[Xamarin] - "GenerateJavaStubs" 异常之解决

参考资料

https://stackoverflow.com/a/37401496

相关文章:

  • 2021-06-28
  • 2022-12-23
  • 2021-04-14
  • 2021-08-16
  • 2021-11-30
  • 2021-11-27
猜你喜欢
  • 2022-12-23
  • 2021-12-10
  • 2021-10-20
  • 2021-12-19
  • 2021-10-16
相关资源
相似解决方案