xbuild,googleplayservices - 错误

时间:2014-02-05 17:58:20

标签: android google-play-services xbuild search-path

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

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

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

此致 拉杰什

[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/

1 个答案:

答案 0 :(得分:0)

从日志中可能看起来没有正确安装Mono.Android。

您是否按照以下文章进行安装?

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