By the error message it seems that you want to use the
SupportMapFragment, which is only available via the
GooglePlayServices_Froyo binding project. This project targets API
level 8 and up.

On Fri, May 24, 2013 at 3:47 AM, Dragos Pop <dragos....@transart.ro> wrote:
> Hello,
>
> We are trying to integrate a MapView in our application, unfortunately we
> can't construct a solution we can build successfully. We've tried to build
> the sample from
> https://github.com/xamarin/monodroid-samples/tree/master/MapsAndLocationDemo_v2
> in Xamarin Studio, but only managed to build the GooglePlaySerives project
> (with 3 warnings:
> /JARTOXML : warning J2X9001: Couldn't load class
> com/google/android/gms/maps/SupportMapFragment :
> java.lang.NoClassDefFoundError: android/support/v4/app/Fragment
>
> JARTOXML : warning J2XA006: missing class error was raised while reflecting
> com.google.android.gms.maps.SupportMapFragment$a :
> android/support/v4/app/Fragment
>
> JARTOXML : warning J2XA006: missing class error was raised while reflecting
> com.google.android.gms.maps.SupportMapFragment$b :
> android/support/v4/app/Fragment/
> )
> The SimpleMapDemo fails with "MSBuild operation failed".
> Anyway, I won't go into details with this experience, since we need a
> solution for Visual Studio.
>
> I've tried to reconstruct the solution in Visual Studio, but the building of
> GooglePlaySerives seems to create a very small (empty?) dll, so the
> SimpleMapDemo does not see the namespace Android.Gms.
> I've tried to add to the references the dll generated by Xamarin Studio
> (which has a 9.21 MB size), with this I get -The
> "ResolveLibraryProjectImports" task failed unexpectedly.- error.
>
> /Done executing task "MSBuild". (TaskId:44)
> Using "ResolveLibraryProjectImports" task from assembly "C:\Program
> Files\MSBuild\Novell\Novell.MonoDroid.Build.Tasks.dll".
> Task "ResolveLibraryProjectImports" (TaskId:45)
>   ResolveLibraryProjectImports Task (TaskId:45)
>     OutputDirectory: obj\Debug\ (TaskId:45)
>     Assemblies:  (TaskId:45)
>
> D:\MapsAndLocationDemo_v2\GooglePlayServices\bin\Debug\GooglePlayServices.dll
> (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v2.2\Mono.Android.dll (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\mscorlib.dll (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Core.dll (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.dll (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.dll (TaskId:45)
>       C:\Program Files\Reference
> Assemblies\Microsoft\Framework\MonoAndroid\v1.0\System.Xml.Linq.dll
> (TaskId:45)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018: The "ResolveLibraryProjectImports" task failed unexpectedly.
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018: System.IO.PathTooLongException: The specified path, file
> name, or both are too long. The fully qualified file name must be less than
> 260 characters, and the directory name must be less than 248 characters.
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at System.IO.PathHelper.GetFullPathName()
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at System.IO.Path.NormalizePath(String path, Boolean
> fullCheck, Int32 maxPathLength)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at System.IO.FileStream.Init(String path, FileMode mode,
> FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32
> bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String
> msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode,
> FileAccess access, FileShare share, Int32 bufferSize, FileOptions options,
> String msgPath, Boolean bFromProxy)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at System.IO.FileStream..ctor(String path, FileMode mode)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at Ionic.Zip.ZipEntry.InternalExtract(String baseDir,
> Stream outstream, String password)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at Ionic.Zip.ZipFile._InternalExtractAll(String path,
> Boolean overrideExtractExistingProperty)
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at
> Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at
> Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
> C:\Program Files\MSBuild\Novell\Novell.MonoDroid.Common.targets(457,2):
> error MSB4018:    at
> Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
> Done executing task "ResolveLibraryProjectImports" -- FAILED. (TaskId:45)
> Done building target "_ExtractLibraryProjectImports" in project
> "SimpleMapDemo.csproj" -- FAILED.: (TargetId:15)
> /
>
> We are using Mono for Android 4.4.55 (an update to 4.6.x is not possible due
> to very big build+packaging times, as mentioned here:
> http://mono-for-android.1047100.n5.nabble.com/Slow-Build-und-Packaging-Process-amp-few-other-things-after-update-td5713139i20.html)
> Could you provide us a working sample for Visual Studio, or help us solve
> the above issues?
>
> Thank you and regards.
>
>
>
>
> --
> View this message in context: 
> http://mono-for-android.1047100.n5.nabble.com/Monodroid-samples-MapsDemo-not-showing-Map-tp5712798p5713344.html
> Sent from the Mono for Android mailing list archive at Nabble.com.
> _______________________________________________
> Monodroid mailing list
> Monodroid@lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid



-- 
http://www.opgenorth.net
_______________________________________________
Monodroid mailing list
Monodroid@lists.ximian.com

UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid

Reply via email to