Xamarin表单构建失败:缺少dx.jar

8nuwlpux  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(202)

I am trying to build a Xamarin Forms 3.4 solution but am getting the following compilation error:

Unable to access jarfile C:\Program Files (x86)\Android\android-sdk\build-tools\32.0.0\\lib\dx.jar

The folder in question only contains the following files:

apksigner.jar
d8.jar
shrinkedAndroid.jar

I opened the Android SDK Manager and can't see any installed platforms or tools. I get the error:

Loading SDK component information failed. Please retry.

This solution built just fine last time I worked on it. I'm thinking of re-installing Xamarin but that feels a little dramatic.

k10s72fa

k10s72fa1#

您可以执行以下操作:-
使用其他版本的Visual Studio(2022)打开Android SDK管理器。
转到工具选项卡〉Android SDK构建工具并卸载32.0.0版本。
这将允许您的项目使用dx.jar文件选择另一个版本。如果您还没有安装30.0.2版本,请安装它。

相关问题