0

我正在尝试使用 xbuild 在 mac os 框上使用命令行进行构建 - 该构建适用于 android,该应用程序包含对 'GooglePlayServicesLib' 、 'Xamarin.Android.Support.v4' 和其他一些库的引用。

但是,当应用程序尝试构建它时无法解析这些引用,我在下面列出了代码片段。我可以看到它正在尝试在几个地方搜索它,但不是 Android SDK 管理器部署库的地方。我想我需要以某种方式指定它在正确的位置进行搜索。

有人可以告诉我
一个。如果我的假设是正确的
b. 如何强制构建过程在正确的位置进行搜索。

问候拉杰什

[16:13:51][Step3/3] /Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'GooglePlayServicesLib' not resolved

[16:13:51][Step 3/3]                For searchpath {CandidateAssemblyFiles}

[16:13:51][Step 3/3]                Warning: {CandidateAssemblyFiles} not supported currently

[16:13:51][Step 3/3]                For searchpath {HintPathFromItem}

[16:13:51][Step 3/3]                Considered ../Components/googleplayservicesgingerbread-13.0/lib/android/GooglePlayServicesLib.dll, but it does not exist.

[16:13:51][Step 3/3]                For searchpath {TargetFrameworkDirectory}

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.0.3, assembly named 'GooglePlayServicesLib' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0, assembly named 'GooglePlayServicesLib' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/, assembly named 'GooglePlayServicesLib' not found.

[16:13:51][Step 3/3]                For searchpath {PkgConfig}

[16:13:51][Step 3/3]                Considered GooglePlayServicesLib, but could not find in any pkg-config files.

[16:13:51][Step 3/3]                For searchpath {GAC}

[16:13:51][Step 3/3]                Considered GooglePlayServicesLib, but could not find in the GAC.

[16:13:51][Step 3/3]                For searchpath {RawFileName}

[16:13:51][Step 3/3]                For searchpath bin/Debug/

[16:13:51][Step 3/3] /Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Xamarin.Android.Support.v4' not resolved

[16:13:51][Step 3/3]                For searchpath {CandidateAssemblyFiles}

[16:13:51][Step 3/3]                Warning: {CandidateAssemblyFiles} not supported currently

[16:13:51][Step 3/3]                For searchpath {HintPathFromItem}

[16:13:51][Step 3/3]                Considered ../Components/googleplayservicesgingerbread-13.0/lib/android/Xamarin.Android.Support.v4.dll, but it does not exist.

[16:13:51][Step 3/3]                For searchpath {TargetFrameworkDirectory}

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.0.3, assembly named 'Xamarin.Android.Support.v4' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0, assembly named 'Xamarin.Android.Support.v4' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/, assembly named 'Xamarin.Android.Support.v4' not found.

[16:13:51][Step 3/3]                For searchpath {PkgConfig}

[16:13:51][Step 3/3]                Considered Xamarin.Android.Support.v4, but could not find in any pkg-config files.

[16:13:51][Step 3/3]                For searchpath {GAC}

[16:13:51][Step 3/3]                Considered Xamarin.Android.Support.v4, but could not find in the GAC.

[16:13:51][Step 3/3]                For searchpath {RawFileName}

[16:13:51][Step 3/3]                For searchpath bin/Debug/

[16:13:51][Step 3/3] /Library/Frameworks/Mono.framework/Versions/3.2.6/lib/mono/4.0/Microsoft.Common.targets:  warning : Reference 'Xamarin.Android.Support.v7.AppCompat' not resolved

[16:13:51][Step 3/3]                For searchpath {CandidateAssemblyFiles}

[16:13:51][Step 3/3]                Warning: {CandidateAssemblyFiles} not supported currently

[16:13:51][Step 3/3]                For searchpath {HintPathFromItem}

[16:13:51][Step 3/3]                Considered ../Components/googleplayservicesgingerbread-13.0/lib/android/Xamarin.Android.Support.v7.AppCompat.dll, but it does not exist.

[16:13:51][Step 3/3]                For searchpath {TargetFrameworkDirectory}

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v4.0.3, assembly named 'Xamarin.Android.Support.v7.AppCompat' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0, assembly named 'Xamarin.Android.Support.v7.AppCompat' not found.

[16:13:51][Step 3/3]                Considered target framework dir /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v1.0/Facades/, assembly named 'Xamarin.Android.Support.v7.AppCompat' not found.

[16:13:51][Step 3/3]                For searchpath {PkgConfig}

[16:13:51][Step 3/3]                Considered Xamarin.Android.Support.v7.AppCompat, but could not find in any pkg-config files.

[16:13:51][Step 3/3]                For searchpath {GAC}

[16:13:51][Step 3/3]                Considered Xamarin.Android.Support.v7.AppCompat, but could not find in the GAC.

[16:13:51][Step 3/3]                For searchpath {RawFileName}

[16:13:51][Step 3/3]                For searchpath bin/Debug/
4

1 回答 1

0

从日志看来,您没有正确安装 Mono.Android。

你是按照下面的文章安装的吗?

http://docs.xamarin.com/guides/android/getting_started/installation/mac/

于 2014-03-13T08:48:09.353 回答