gpt4 book ai didi

android-studio - 无法在 macOS Sierra 上安装 Visual Studio for Mac Preview

转载 作者:行者123 更新时间:2023-12-03 16:03:18 26 4
gpt4 key购买 nike

macOS Sierra 10.12.2 Visual Studio for Mac 预览版无法安装。安装版本是 3.0.0。 (1).

软件要求都安装好了,但安装程序在某些时候无法检测到Android SDK:

[2017-01-12 10:08:52.260] [Debug] Detecting software item 'Mono Framework'
[2017-01-12 10:08:52.260] [Info] Checking whether Mono needs update/installation
[2017-01-12 10:08:52.260] [Debug] In IsCurrentMonoNewEnough
[2017-01-12 10:08:52.260] [Debug] current == /Library/Frameworks/Mono.framework/Versions/Current
[2017-01-12 10:08:52.260] [Debug] current symlink: /Library/Frameworks/Mono.framework/Versions/4.6.2
[2017-01-12 10:08:52.260] [Debug] file name: 4.6.2
[2017-01-12 10:08:52.261] [Debug] parsed version: 4.6.2
[2017-01-12 10:08:52.261] [Info] Mono 4.8.0 needs to be installed.
[2017-01-12 10:08:52.362] [Info] Status: successful
[2017-01-12 10:08:52.362] [Info] Software item 'Mono Framework': not up to date
[2017-01-12 10:08:52.368] [Info] Component 'Mono Framework' v. 4.8.0 absent
[2017-01-12 10:08:52.369] [Debug] Component Mono Framework enqueuing URL https://dl.xamarin.com/MonoFrameworkMDK/Macx86/MonoFramework-MDK-4.8.0.344.macos10.xamarin.universal.pkg
[2017-01-12 10:08:53.506] [Debug] Detecting software item 'Java SDK'
[2017-01-12 10:08:53.507] [Info] Checking whether Oracle JDK needs update/installation
[2017-01-12 10:08:53.509] [Info] Status: successful
[2017-01-12 10:08:53.509] [Info] Component 'Java SDK' v. 1.8.0 1.8.0 present
[2017-01-12 10:08:53.509] [Info] Software item 'Java SDK': up to date
[2017-01-12 10:08:53.509] [Debug] Detecting software item 'Android SDK'
[2017-01-12 10:08:53.509] [Info] Checking if Android SDK needs to be updated/installed
[2017-01-12 10:08:53.510] [Info] Using default samples:
[2017-01-12 10:08:53.510] [Info] Downloading from 'http://download.xamarin.com/Installer/xamarin-android-sdk.xml'.
[2017-01-12 10:08:53.510] [Debug] Setting download timeout for 'http://download.xamarin.com/Installer/xamarin-android-sdk.xml' to 60s
[2017-01-12 10:08:54.229] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 10:08:54.229] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 10:08:54.231] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 10:08:54.231] [Warning] Cannot map element 'lldb' to descriptor type.
[2017-01-12 10:08:54.232] [Warning] Cannot map element 'licenses' to descriptor type.
[2017-01-12 10:08:54.433] [Debug] Detecting Android SDK in '/Users/loretoparisi/Library/Developer/Xamarin/android-sdk-macosx'
[2017-01-12 10:08:54.538] [Debug] Download size for 'http://dl-ssl.google.com/android/repository/android-ndk-r13b-darwin-x86_64.zip': 665967997
[2017-01-12 10:08:54.538] [Debug] NDK found in '/Users/loretoparisi/Library/Developer/Xamarin/android-ndk/android-ndk-r13b', no update necessary
[2017-01-12 10:08:54.538] [Error] Failed to find archive for component 'system-image---default'. Tried any:any:64, any:any:0
[2017-01-12 10:08:54.538] [Error] Android component 'system-image-23-armeabi-v7a-default': archive for OS any and architecture any not found in the manifest
[2017-01-12 10:08:54.538] [Exception] Attempt to initialize component 'system-image-23-armeabi-v7a-default' failed
[2017-01-12 10:08:54.538] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentBase.Init (Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase descriptor, System.Uri repositoryUrl) [0x0011f] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentBase.cs:299
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Init (Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase descriptor, System.Uri repositoryUrl) [0x00000] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentSystemImage.cs:36
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase.CreateComponent (System.String baseDownloadUrl, Xamarin.Installer.AndroidSDK.AndroidSDKInstaller installer) [0x00075] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentDescriptorBase.cs:196
[2017-01-12 10:08:54.538] [Info] Status: failed.
[2017-01-12 10:08:54.538] [Exception] Failed to detect component 'Android SDK'
[2017-01-12 10:08:54.538] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentBase.Init (Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase descriptor, System.Uri repositoryUrl) [0x0011f] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentBase.cs:299

查看日志似乎首先在默认文件夹中检测到 Android SDK 和 NKD,但随后出现故障。

我已经安装了 Xamarin Studio Community Edition 和 Android Studio,因此应该满足所有必需的组件。

错误日志继续
[2017-01-12 10:08:54.538] [Exception] Failed to detect component 'Android SDK'
[2017-01-12 10:08:54.538] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentBase.Init (Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase descriptor, System.Uri repositoryUrl) [0x0011f] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentBase.cs:299
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentSystemImage.Init (Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase descriptor, System.Uri repositoryUrl) [0x00000] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentSystemImage.cs:36
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Installer.AndroidSDK.AndroidComponentDescriptorBase.CreateComponent (System.String baseDownloadUrl, Xamarin.Installer.AndroidSDK.AndroidSDKInstaller installer) [0x00075] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Installer.AndroidSDK/Xamarin.Installer.AndroidSDK/AndroidComponentDescriptorBase.cs:196
[2017-01-12 10:08:54.538] [Exception] Detection failed for task Android SDK.
[2017-01-12 10:08:54.538] [Exception] System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.538] [Exception] at Xamarin.Web.Installer.TasksManager.DetectComponents () [0x00097] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Web.Installer/TasksManager.cs:297
[2017-01-12 10:08:54.539] [Info] Status: failed.
[2017-01-12 10:08:54.539] [Exception] Initial task interrupted by exception
[2017-01-12 10:08:54.539] [Exception] System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.539] [Exception] at Xamarin.Web.Installer.TasksManager.DetectComponents () [0x00097] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Web.Installer/TasksManager.cs:297
[2017-01-12 10:08:54.539] [Exception] --- End of inner exception stack trace ---
[2017-01-12 10:08:54.539] [Exception] at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00014] in /Library/Frameworks/Xamarin.Mac.framework/Versions/2.10.0.113/src/mono/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2157
[2017-01-12 10:08:54.539] [Exception] at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00052] in /Library/Frameworks/Xamarin.Mac.framework/Versions/2.10.0.113/src/mono/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3189
[2017-01-12 10:08:54.539] [Exception] at System.Threading.Tasks.Task.Wait (System.Threading.CancellationToken cancellationToken) [0x00000] in /Library/Frameworks/Xamarin.Mac.framework/Versions/2.10.0.113/src/mono/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3107
[2017-01-12 10:08:54.539] [Exception] at Xamarin.Web.Installer.TasksManager.WaitForTask (System.Threading.Tasks.Task task, System.String taskName) [0x00084] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Web.Installer/TasksManager.cs:165
[2017-01-12 10:08:54.539] [Exception] ---> (Inner Exception #0) System.InvalidOperationException: No suitable component archive found.
[2017-01-12 10:08:54.539] [Exception] at Xamarin.Web.Installer.TasksManager.DetectComponents () [0x00097] in /Users/builder/data/lanes/4029/b49471af/source/installer/Xamarin.Web.Installer/TasksManager.cs:297 <---
[2017-01-12 10:08:54.648] [Debug] Detection complete on the introduction page, determining the next step.

最佳答案

我之前遇到过同样的问题并修复了它。我假设有问题的人转到 Visual Studio for Mac 网页并单击下载安装程序的下载按钮。当这失败时,您会看到一个 Android SDK 要求列表,如下所示:

  • Android SDK 工具
  • Android SDK 平台工具
  • Android SDK 构建工具
  • Android API 15
  • Android API 19
  • Android API 21

  • 打开 SDK 管理器并安装它们。用于启动我的 SDK Manager 安装的二进制文件如下:
  • /Users/Matt/Library/Developer/Xamarin/android-sdk-macosx/tools/android

  • 显然,将上面路径中的“Matt”替换为您的用户名。安装这些后,您需要下载以下内容:
  • https://dl.xamarin.com/VsMac/VisualStudioForMac-Preview1-7.0.0.347.dmg

  • 这是完整的下载,而不是您在主站点上获得的 20MB 安装程序。单击该文件并安装,您应该很高兴。无论如何,这对我有用:-)

    关于android-studio - 无法在 macOS Sierra 上安装 Visual Studio for Mac Preview,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41610565/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com