Build Failed. See the build log for detail

后端 未结 12 908
一整个雨季
一整个雨季 2021-01-07 22:40

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

Build Failed. See the build log for details.

In the build log there i

相关标签:
12条回答
  • 2021-01-07 23:13

    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.
    0 讨论(0)
  • 2021-01-07 23:18

    I got the same error when trying to build. Without having noticed I had been logged out of my account, which caused the error. Curious that I wasn't prompted to relog or given information that I wasn't logged in.

    0 讨论(0)
  • 2021-01-07 23:20

    cd into the project path, and hit msbuild on it. You will then see the error details in the console STDOUT.

    0 讨论(0)
  • 2021-01-07 23:20

    I had the same problem after upgrading Xamarin, and in my case it happened even for a x86/desktop Console Application. Turned out to be because I didn't have 4.5.1, which was required by the newer version (I had only 4.5 I think).

    I found this entry in the log:

    Unregistered TargetFramework '.NETFramework,Version=v4.5.1' is being requested from SystemAssemblyService, returning empty TargetFramework

    After googing this error I found https://stackoverflow.com/a/38102386/492336, and the solution was to download .NET 4.5.1 and it worked after that!

    0 讨论(0)
  • I just ran into the same problem using Visual Studio Community for Mac. The system was out of disk space. Freeing up some disk allowed a build to complete successfully.

    0 讨论(0)
  • 2021-01-07 23:26

    That means that there was an internal error - most likely Xamarin Studio could not connect to the build engine process, or the build engine process crashed. Please check the logs from Help->Open Log Directory, there should be a more complete error trace in there

    0 讨论(0)
提交回复
热议问题