简体   繁体   English

重新安装Android SDK(Xamarin / Visual Studio 2015)

[英]Reinstalling Android SDK (Xamarin / Visual Studio 2015)

The android-sdk install folder was corrupted during a failed update from the SDK Manager and needs to be reinstalled. 从SDK Manager更新失败时,android-sdk安装文件夹已损坏,需要重新安装。

It is being used with the Xamarin Visual Studio 2015 plug in, and I'm not sure if it can be reinstalled "outside" of VS, or if there is an integrated tool that should be used. 它正在与Xamarin Visual Studio 2015插件一起使用,我不确定是否可以在VS外部重新安装它,或者是否应该使用集成工具。

As far as I can tell, the only hooks VS has into the SDK are the path references under Tools->Options->Xamarin->Android Settings. 据我所知,VS对SDK的唯一钩住是Tools-> Options-> Xamarin-> Android Settings下的路径引用。

You can define any Android SDK you'd like. 您可以定义任何想要的Android SDK So if you want to reinstall the Android SDK , it's as simple as deleting your current Android SDK and downloading it again and specifying the path in the Tools > Options > Xamarin > Android section. 因此,如果您想重新安装Android SDK ,就像删除当前的Android SDK并再次下载并在“ Tools > Options > Xamarin > Android部分中指定路径一样简单。

Note: Just be cautious for other programs that might be using it such as other IDEs (Android Studio) and third party programs! 注意:请注意其他可能正在使用它的程序,例如其他IDE(Android Studio)和第三方程序!

You can only reinstall SDK, moving files for Android path. 您只能重新安装SDK,移动Android路径的文件。

Verify that the AVD can be run, before open Visual Studio. 打开Visual Studio之前,请验证AVD是否可以运行。

Can you update version, is necessary to modify path references under Tools-> Options-> Xamarin-> Android Settings 您能否更新版本,需要在“工具”->“选项”->“ Xamarin”->“ Android设置”下修改路径引用

Download: https://developer.android.com/studio/index.html#downloads 下载: https : //developer.android.com/studio/index.html#downloads

The Android SDK can be added/removed just like any other install-able component from the Modify dialog within the VS installer (JDK as well). 可以像从VS安装程序(以及JDK)中的“修改”对话框中添加其他所有可安装组件一样,添加/删除Android SDK。

Manual modification is therefore somewhat of a hack now (that could lead to unforeseen consequences, which is what I'm trying to avoid). 因此,手动修改现在有点像破解(可能会导致无法预料的后果,这就是我要避免的事情)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM