我試圖構建mondroid樣本https://github.com/xamarin/monodroid-samples/tree/master/MapsAndLocationDemo。Monodroid:無法找到庫'com.google.android.maps'
每當我啓動應用程序,我得到在輸出窗口中出現以下錯誤:
[STDOUT] "C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj" (SignAndroidPackage target) (1) ->
[STDOUT] (_GenerateJavaStubs target) ->
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: The "GenerateJavaStubs" task failed unexpectedly. [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: System.InvalidOperationException: AndroidManifest.xml : error 1: Unable to find library 'com.google.android.maps'. [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: bei Xamarin.Android.Tasks.ManifestDocument.AddAddOns(XElement app) [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: bei Xamarin.Android.Tasks.ManifestDocument.Merge(List`1 subclasses, List`1 selectedWhitelistAssemblies, Boolean embed) [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: bei Xamarin.Android.Tasks.GenerateJavaStubs.Execute() [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: bei Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
[STDOUT] C:\Program Files (x86)\MSBuild\Novell\Novell.MonoDroid.Common.targets(595,3): error MSB4018: bei Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult) [C:\Dev\Playground\monodroid-samples\MapsAndLocationDemo\MapsAndLocationDemo.csproj]
我檢查以下內容:
- 安裝在SDK管理器中
- SDK Plattform谷歌的API安裝在SDK Manager中
- 我正在使用的AVD,面向GoogleAPI
- 我在運行Visual Studio作爲管理員
- 我能成功打造一個Hello World例子
由於我是新來的單聲道和Android開發我敢肯定,我失去了一些東西明顯,所以請忍受着我。
您確定您已經爲您定位的平臺版本安裝了Google API嗎?每個平臺都有不同的版本。 – jpobst 2012-04-21 16:16:08
我相當積極。我也試過使用不同的plattform。見http://imgur.com/v7JfX – AyKarsi 2012-04-21 18:15:39