开源Xamarin.Android缺少mandroid

时间:2016-05-05 18:10:59

标签: linux xamarin msbuild mono xamarin.android

我设法在Linux(当前的ubuntu)上编译来自github的最近开源的Xamarin.Android代码,并尝试编译该示例,并得到以下错误:

$ tools/scripts/xabuild samples/HelloWorld/HelloWorld.csproj
XBuild Engine Version 14.0
Mono, Version 4.4.0.0
Copyright (C) 2005-2013 Various Mono authors

Build started 5/5/2016 7:42:19 PM.
__________________________________________________
Project "/opt/xamarin/xamarin-android/samples/HelloWorld/HelloWorld.csproj" (default target(s)):
    Target _CreatePropertiesCache:
        Created directory "obj/Debug/"
    Target _BuildSdkCache:
: error XA0020: Could not find mandroid!
    Task "ResolveSdks" execution -- FAILED
    Done building target "_BuildSdkCache" in project "/opt/xamarin/xamarin-android/samples/HelloWorld/HelloWorld.csproj".-- FAILED
Done building project "/opt/xamarin/xamarin-android/samples/HelloWorld/HelloWorld.csproj".-- FAILED

Build FAILED.

然后我尝试了我想编译的实际应用程序并得到了同样的错误。

似乎错过了#mand;" mandroid"文件,在windows下称为mandroid.exe,位于C:\ Program Files(x86)\ Msbuild \ Xamarin \ Android \ mandroid.exe。它大小为13 MB,是本机可执行文件(不是.NET)。

我做错了什么?

Miguel de Icaza多年前表示,他们并不打算支持Linux,因为有太多的口味。现在它是开源的,应该可以在Linux下编译和运行它,就像在OS X上一样。

但我无法在源树中的任何位置找到任何mandroid文件。有几个引用它,但我不知道如何构建它。

致以最诚挚的问候,

汉斯

0 个答案:

没有答案