Failed to install & unable to set Android SDK Mac OS X v10.10.5

Hello,

I was trying to install Xamarin via Xamarin Installer but failed. So, I decided to install the packages manually. Then I tried to set Android SDK, Android NDK, and JDK, but it couldn't save my settings. Location was found but can't save it. I wanted to use existing Android SDK but failed, then I copied the SDK to /Users/USER_DIRECTORY/Library/Developer/Xamarin/android-sdk-macosx/ still no luck.

I tried to install via Xamarin Installer again, but failed again. Here's the logs.

[2015-10-09 17:32:53.475] [Info] Installation ID: 66258a30-98cf-4759-9627-d0f10b3ff369
[2015-10-09 17:32:53.484] [Info] Operating system: Mac OS X v10.10.5 (10.10.5; Mac OS X 10.10.5 (10.10.5 build version: 14F1012)), 32-bit
[2015-10-09 17:32:53.484] [Info] Installer product: Xamarin
[2015-10-09 17:32:53.484] [Info] Installer version: 3.2.0.175 (detached from d7b453d) (d7b453d7810e6f2e5bf11bdb2005b19a17f1cffb on 01/07/2015 12:03:24)
[2015-10-09 17:32:53.485] [Info] Status: in progress
[2015-10-09 17:32:59.593] [Debug] Waiting for manifests to finish downloading.
[2015-10-09 17:32:59.600] [Debug] Initial task executing (WaitingForActivation). Waiting for it to finish.
[2015-10-09 17:33:00.536] [Info] Retrieving installation manifest.
[2015-10-09 17:33:00.544] [Info] Downloading from 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationManifest.xml'.
[2015-10-09 17:33:00.544] [Debug] Setting download timeout for 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationManifest.xml' to 60s
[2015-10-09 17:33:04.047] [Info] Retrieving installation size manifest.
[2015-10-09 17:33:04.048] [Info] Downloading from 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationSizes.xml'.
[2015-10-09 17:33:04.048] [Debug] Setting download timeout for 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationSizes.xml' to 60s
[2015-10-09 17:33:06.723] [Exception] Failed to retrieve response for URL 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationSizes.xml'
[2015-10-09 17:33:06.723] [Exception] System.Net.WebException: The remote server returned an error: (403) Forbidden.
[2015-10-09 17:33:06.723] [Exception] at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0
[2015-10-09 17:33:06.723] [Exception] at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0
[2015-10-09 17:33:06.732] [Exception] Failed to download resource from 'https://www.xamarin.com/installer_assets/v3/Mac/Universal//InstallationSizes.xml'
[2015-10-09 17:33:06.732] [Exception] System.Net.WebException: The remote server returned an error: (403) Forbidden.
[2015-10-09 17:33:06.732] [Exception] at System.Net.HttpWebRequest.CheckFinalStatus (System.Net.WebAsyncResult result) [0x00000] in <filename unknown>:0
[2015-10-09 17:33:06.732] [Exception] at System.Net.HttpWebRequest.SetResponseData (System.Net.WebConnectionData data) [0x00000] in <filename unknown>:0
[2015-10-09 17:33:06.732] [Info] Installation size manifest: reading from assembly.
[2015-10-09 17:33:06.732] [Info] Determining list of software items to install.
[2015-10-09 17:33:06.732] [Debug] Processing update nodes from the manifest.
[2015-10-09 17:33:06.732] [Debug] Creating and initializing software item 'Mono Framework'
[2015-10-09 17:33:07.043] [Debug] Creating and initializing software item 'Java SDK'
[2015-10-09 17:33:07.156] [Debug] Creating and initializing software item 'Android SDK'
[2015-10-09 17:33:07.165] [Debug] Creating and initializing software item 'Xamarin Studio'
[2015-10-09 17:33:07.165] [Debug] Creating and initializing software item 'Xamarin.Android'
[2015-10-09 17:33:07.165] [Debug] Creating and initializing software item 'Xamarin.iOS'
[2015-10-09 17:33:07.165] [Debug] Creating and initializing software item 'Xamarin.Mac'
[2015-10-09 17:33:07.166] [Debug] Detecting software item 'Mono Framework'
[2015-10-09 17:33:07.166] [Info] Checking whether Mono needs update/installation
[2015-10-09 17:33:07.166] [Info] Mono runtime found in /Library/Frameworks/Mono.framework/Versions/4.0.4
[2015-10-09 17:33:07.166] [Info] Mono version 4.0.4 was found in /Library/Frameworks/Mono.framework/Versions
[2015-10-09 17:33:07.167] [Info] Status: successful
[2015-10-09 17:33:07.167] [Info] Component 'Mono Framework' v. 4.0.4 present
[2015-10-09 17:33:07.167] [Info] Software item 'Mono Framework': up to date
[2015-10-09 17:33:07.167] [Debug] Detecting software item 'Java SDK'
[2015-10-09 17:33:07.168] [Info] Checking whether Oracle JDK needs update/installation
[2015-10-09 17:33:07.273] [Info] Status: successful
[2015-10-09 17:33:07.282] [Info] Component 'Java SDK' v. 1.8.0 1.8.0 present
[2015-10-09 17:33:07.282] [Info] Software item 'Java SDK': up to date
[2015-10-09 17:33:07.282] [Debug] Detecting software item 'Android SDK'
[2015-10-09 17:33:07.282] [Info] Checking if Android SDK needs to be updated/installed
[2015-10-09 17:33:07.283] [Info] Fetching Android SDK manifest.
[2015-10-09 17:33:07.283] [Info] Manifest URL: http://dl.google.com/android/repository/repository-10.xml
[2015-10-09 17:33:07.283] [Info] Using default samples:
[2015-10-09 17:33:07.283] [Info] Downloading from 'http://dl.google.com/android/repository/repository-10.xml'.
[2015-10-09 17:33:07.283] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/repository-10.xml' to 25s
[2015-10-09 17:33:08.205] [Debug] Adding Android repository manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/repository/10'
[2015-10-09 17:33:08.205] [Debug] Adding Android repository manifest XML namespace 'xsi' == 'http://www.w3.org/2001/XMLSchema-instance'
[2015-10-09 17:33:08.205] [Info] Downloading from 'http://dl.google.com/android/repository/addons_list-2.xml'.
[2015-10-09 17:33:08.206] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/addons_list-2.xml' to 25s
[2015-10-09 17:33:08.311] [Debug] Adding Android repository manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/addons-list/2'
[2015-10-09 17:33:08.320] [Debug] Downloading Android system images 'Android System Images' manifest from http://dl.google.com/android/repository/sys-img/android/sys-img.xml
[2015-10-09 17:33:08.320] [Info] Downloading from 'http://dl.google.com/android/repository/sys-img/android/sys-img.xml'.
[2015-10-09 17:33:08.320] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/sys-img/android/sys-img.xml' to 25s
[2015-10-09 17:33:08.732] [Debug] Adding Android System Images manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/sys-img/3'
[2015-10-09 17:33:08.741] [Debug] Adding Android System Images manifest XML namespace 'xsi' == 'http://www.w3.org/2001/XMLSchema-instance'
[2015-10-09 17:33:08.741] [Debug] Downloading Android system images 'Android Wear System Images' manifest from http://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml
[2015-10-09 17:33:08.741] [Info] Downloading from 'http://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml'.
[2015-10-09 17:33:08.741] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/sys-img/android-wear/sys-img.xml' to 25s
[2015-10-09 17:33:09.051] [Debug] Adding Android Wear System Images manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/sys-img/3'
[2015-10-09 17:33:09.059] [Debug] Adding Android Wear System Images manifest XML namespace 'xsi' == 'http://www.w3.org/2001/XMLSchema-instance'
[2015-10-09 17:33:09.060] [Debug] Downloading Android system images 'Android TV System Images' manifest from http://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml
[2015-10-09 17:33:09.060] [Info] Downloading from 'http://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml'.
[2015-10-09 17:33:09.060] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/sys-img/android-tv/sys-img.xml' to 25s
[2015-10-09 17:33:09.271] [Debug] Adding Android TV System Images manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/sys-img/3'
[2015-10-09 17:33:09.271] [Debug] Adding Android TV System Images manifest XML namespace 'xsi' == 'http://www.w3.org/2001/XMLSchema-instance'
[2015-10-09 17:33:09.271] [Debug] Downloading Android system images 'Google API add-on System Images' manifest from http://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml
[2015-10-09 17:33:09.271] [Info] Downloading from 'http://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml'.
[2015-10-09 17:33:09.272] [Debug] Setting download timeout for 'http://dl.google.com/android/repository/sys-img/google_apis/sys-img.xml' to 25s
[2015-10-09 17:33:09.683] [Debug] Adding Google API add-on System Images manifest XML namespace 'sdk' == 'http://schemas.android.com/sdk/android/sys-img/3'
[2015-10-09 17:33:09.692] [Debug] Adding Google API add-on System Images manifest XML namespace 'xsi' == 'http://www.w3.org/2001/XMLSchema-instance'
[2015-10-09 17:33:09.692] [Debug] AVD paths: base: /Users/onebit-adit-mac/.android/avd; AVD: /Users/onebit-adit-mac/.android/avd
[2015-10-09 17:33:09.692] [Debug] Checking whether AVD exists at /Users/onebit-adit-mac/.android/avd/Xamarin Android API 15.avd
[2015-10-09 17:33:09.692] [Debug] AVD directory does not exist
[2015-10-09 17:33:09.692] [Info] AVD 'Xamarin Android API 15' needs to be created.
[2015-10-09 17:33:09.693] [Debug] AVD paths: base: /Users/onebit-adit-mac/.android/avd; AVD: /Users/onebit-adit-mac/.android/avd
[2015-10-09 17:33:09.693] [Debug] Checking whether AVD exists at /Users/onebit-adit-mac/.android/avd/Xamarin Android API 21.avd
[2015-10-09 17:33:09.693] [Debug] AVD directory does not exist
[2015-10-09 17:33:09.693] [Info] AVD 'Xamarin Android API 21' needs to be created.
[2015-10-09 17:33:09.693] [Info] Status: failed.
[2015-10-09 17:33:09.693] [Exception] Failed to detect component 'Android SDK'
[2015-10-09 17:33:09.693] [Exception] System.NullReferenceException: Object reference not set to an instance of an object
[2015-10-09 17:33:09.693] [Exception] at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.Detect () [0x00000] in <filename unknown>:0
[2015-10-09 17:33:09.693] [Exception] at Xamarin.Web.Installer.Installer.AndroidSoftwareItem.NeedsUpdate () [0x00000] in <filename unknown>:0
[2015-10-09 17:33:09.693] [Exception] at Xamarin.Web.Installer.TasksManager.ComponentDetector (ISoftwareItem si) [0x00000] in <filename unknown>:0
[2015-10-09 17:33:09.693] [Error] No selected SDK, cannot enqueue downloads
[2015-10-09 17:33:09.694] [Debug] Detecting software item 'Xamarin Studio'
[2015-10-09 17:33:09.694] [Info] Checking whether Xamarin Studio needs installation/updating
[2015-10-09 17:33:09.694] [Info] Status: successful
[2015-10-09 17:33:09.694] [Info] Component 'Xamarin Studio' v. 5.9.7 present
[2015-10-09 17:33:09.694] [Info] Software item 'Xamarin Studio': up to date
[2015-10-09 17:33:09.694] [Debug] Detecting software item 'Xamarin.Android'
[2015-10-09 17:33:09.694] [Info] Checking whether Xamarin.Android SDK needs installation/updating
[2015-10-09 17:33:09.694] [Info] Found Mono runtime for Xamarin.Android: /Developer/MonoAndroid/usr/bin/cross-arm
[2015-10-09 17:33:09.694] [Info] Found Mono runtime for Xamarin.Android: /Developer/MonoAndroid/usr/bin/cross-x86
[2015-10-09 17:33:10.317] [Info] Status: successful
[2015-10-09 17:33:10.325] [Info] Component 'Xamarin.Android' v. 5.1.7 present
[2015-10-09 17:33:10.325] [Info] Software item 'Xamarin.Android': up to date
[2015-10-09 17:33:10.326] [Debug] Detecting software item 'Xamarin.iOS'
[2015-10-09 17:33:10.326] [Info] Checking whether Xamarin.iOS needs update/installation
[2015-10-09 17:33:10.327] [Info] Found Mono runtime /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/arm-darwin-mono-boehm
[2015-10-09 17:33:10.327] [Info] Xamarin.iOS Utility binary not found at '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch-32'
[2015-10-09 17:33:10.327] [Info] Xamarin.iOS Utility binary not found at '/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch-64'
[2015-10-09 17:33:10.327] [Info] Status: successful
[2015-10-09 17:33:10.327] [Info] Component 'Xamarin.iOS' v. 9.0.1 present
[2015-10-09 17:33:10.328] [Info] Software item 'Xamarin.iOS': up to date
[2015-10-09 17:33:10.328] [Debug] Detecting software item 'Xamarin.Mac'
[2015-10-09 17:33:10.328] [Info] Checking whether Xamarin.Mac needs update/installation
[2015-10-09 17:33:10.328] [Info] Status: successful
[2015-10-09 17:33:10.328] [Info] Component 'Xamarin.Mac' v. 2.0.2 present
[2015-10-09 17:33:10.329] [Info] Software item 'Xamarin.Mac': up to date
[2015-10-09 17:33:10.329] [Info] Detection complete
[2015-10-09 17:33:10.329] [Info] Initial task completed successfully
[2015-10-09 17:33:10.329] [Debug] Detection complete on the introduction page, determining the next step.

Please help me with this.

Thanks.

NOTE:

  • Android SDK path: /Users/USER_DIRECTORY/Library/Android/sdk
  • JDK path: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/
  • NDK path: /Users/USER_DIRECTORY/Library/Developer/Xamarin/android-ndk/android-ndk-r10d

Answers

  • BerayBentesenBerayBentesen TRUniversity ✭✭✭✭

    I suggest you backup your files and re-install os x. Than be sure internet connection is good and use Xamarin installer. I tried many times install manually but faced with problems everytime :)

  • Hi @BerayBentesen, I did what you suggested, and sadly I got another issue. Do you have another suggestion?

    Thanks.

  • I finally found the solution. Manually install .dmg and .pkg did work.
    If you're having Android SDK problem, it might be because permission in .config. Fix the permission, or manually set monodroid-config.xml like below.

    <?xml version="1.0" encoding="utf-8"?>
    <monodroid>
      <android-sdk path="YOUR_SDK_PATH" />
      <java-sdk path="/usr" />
      <android-ndk path="YOUR_NDK_PATH"/>
    </monodroid>
    
Sign In or Register to comment.