Search code examples
c#visual-studioxamarinbuildmsbuild

Build Failed. See the build log for detail


I create a new project, click compile, and get this error:

Build Failed. See the build log for details.

In the build log there is only this:

Building: FirstProgram (Debug|x86)

---------------------- Done ----------------------

Build failed.
Build: 1 error, 0 warnings

Here is what I see:

enter image description here

What causes this error and how do I fix it?


Solution

  • I downloaded and installed the packages shown below in the order listed:

    1. JDK 1.6: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html Please choose the jdk-6u31-windows-i586.exe installer from the list above.
    2. Android SDK: http://dl.google.com/android/installer_r20-windows.exe After the main installer is done, please open the SDK Manager and install the following platform APIs: 7,8,10,12,14
    3. Mono for Android SDK: http://download.xamarin.com/MonoforAndroid/Windows/mono-android-4.4.55.104956787.msi
    4. Reboot Xamarin.