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.
1条答案
按热度按时间k10s72fa1#
您可以执行以下操作:-
使用其他版本的Visual Studio(2022)打开Android SDK管理器。
转到工具选项卡〉Android SDK构建工具并卸载32.0.0版本。
这将允许您的项目使用dx.jar文件选择另一个版本。如果您还没有安装30.0.2版本,请安装它。