kinfey / AMapMAUIControls

MIT License
65 stars 19 forks source link

[droid] the project does not build on mac M1 #7

Open dodikk opened 1 year ago

dodikk commented 1 year ago

Just downloaded the AMap3DMap_9.6.0_AMapSearch_9.5.0_AMapLocation_6.2.0_20230116.jar with libAMapSDK_MAP_v9_6_0.so and put them to .../samples/Droid.Bindings/AMap.Droid.Demo/Droid.AMap/Jars/

Got this error:

/Users/dodd/projects/work/proto/AMapMAUIControls/samples/Droid.Bindings/AMap.Droid.Demo/Droid.AMap/obj/Debug/net6.0-android/generated/src/Com.Amap.Api.Maps.Offlinemap.OfflineMapProvince.cs(14,56,14,63): warning CS0108: 'OfflineMapProvince.Creator' hides inherited member 'Province.Creator'. Use the new keyword if hiding was intended.
/Users/dodd/projects/work/proto/AMapMAUIControls/samples/Droid.Bindings/AMap.Droid.Demo/Droid.AMap/obj/Debug/net6.0-android/generated/src/Com.Amap.Api.Maps.Model.GLTFOverlayOptionsCreator.cs(10,77,10,114): error CS0738: 'GLTFOverlayOptionsCreator' does not implement interface member 'IParcelableCreator.CreateFromParcel(Parcel?)'. 'GLTFOverlayOptionsCreator.CreateFromParcel(Parcel?)' cannot implement 'IParcelableCreator.CreateFromParcel(Parcel?)' because it does not have the matching return type of 'Object'.
/Users/dodd/projects/work/proto/AMapMAUIControls/samples/Droid.Bindings/AMap.Droid.Demo/Droid.AMap/obj/Debug/net6.0-android/generated/src/Com.Amap.Api.Maps.Model.GLTFOverlayOptionsCreator.cs(10,77,10,114): error CS0738: 'GLTFOverlayOptionsCreator' does not implement interface member 'IParcelableCreator.NewArray(int)'. 'GLTFOverlayOptionsCreator.NewArray(int)' cannot implement 'IParcelableCreator.NewArray(int)' because it does not have the matching return type of 'Object[]'.
    152 Warning(s)
    2 Error(s)

P.S. Visual Studio Mac 17.6 Preview (17.6 build 402) ; MacOS Ventura 13.1