POST
|
I have an application writen in Xamarin Forms targeting primarily Android, with ArcGISRuntime 100.5. Everything works like a charm. After updating to version 100.6 I am getting a exception: "Default constructor not found for type Esri.ArcGISRuntime.Xamarin.Forms.Platform.Android.MapViewRenderer" when open the Page with MapView control. Anyone experienced something like that? at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic, System.Boolean wrapExceptions) [0x0007b] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean wrapExceptions, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Boolean wrapExceptions, System.Threading.StackCrawlMark& stackMark) [0x00027] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic, System.Boolean wrapExceptions) [0x0002c] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00000] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at System.Activator.CreateInstance (System.Type type) [0x00000] in <d4a23bbd2f544c30a48c44dd622ce09f>:0 at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandler (System.Type type) [0x00015] in D:\agent\_work\1\s\Xamarin.Forms.Core\Registrar.cs:36 at Xamarin.Forms.Internals.Registrar`1[TRegistrable].GetHandler[TOut] (System.Type type) [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Core\Registrar.cs:42 at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x00006] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:284 at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x00023] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:86 at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00104] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:219 at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:70 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:371 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000ce] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:174 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:120 at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:285 at Xamarin.Forms.Platform.Android.VisualElementPackager.AddChild (Xamarin.Forms.VisualElement view, Xamarin.Forms.Platform.Android.IVisualElementRenderer oldRenderer, Xamarin.Forms.Platform.Android.RendererPool pool, System.Boolean sameChildren) [0x00023] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:86 at Xamarin.Forms.Platform.Android.VisualElementPackager.SetElement (Xamarin.Forms.VisualElement oldElement, Xamarin.Forms.VisualElement newElement) [0x00104] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:219 at Xamarin.Forms.Platform.Android.VisualElementPackager.Load () [0x00000] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementPackager.cs:70 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetPackager (Xamarin.Forms.Platform.Android.VisualElementPackager packager) [0x00007] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:371 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].SetElement (TElement element) [0x000ce] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:174 at Xamarin.Forms.Platform.Android.VisualElementRenderer`1[TElement].Xamarin.Forms.Platform.Android.IVisualElementRenderer.SetElement (Xamarin.Forms.VisualElement element) [0x00027] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\VisualElementRenderer.cs:120 at Xamarin.Forms.Platform.Android.Platform.CreateRenderer (Xamarin.Forms.VisualElement element) [0x0001f] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:285 at Xamarin.Forms.Platform.Android.Platform.PresentModal (Xamarin.Forms.Page modal, System.Boolean animated) [0x00023] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:766 at Xamarin.Forms.Platform.Android.Platform+<Xamarin-Forms-INavigation-PushModalAsync>d__53.MoveNext () [0x0004a] in D:\agent\_work\1\s\Xamarin.Forms.Platform.Android\Platform.cs:264 --- End of stack trace from previous location where exception was thrown --- at Xamarin.Forms.Application+NavigationImpl+<OnPushModal>d__3.MoveNext () [0x0008d] in D:\agent\_work\1\s\Xamarin.Forms.Core\Application.cs:351 --- End of stack trace from previous location where exception was thrown --- at Prism.Navigation.PageNavigationService+<DoPush>d__30.MoveNext () [0x000c1] in <d8c75a611c3d4353a4bfda6337f9efd1>:0 --- End of stack trace from previous location where exception was thrown --- at Prism.Navigation.PageNavigationService+<>c__DisplayClass13_0+<<ProcessNavigationForContentPage>b__0>d.MoveNext () [0x00091] in <d8c75a611c3d4353a4bfda6337f9efd1>:0 --- End of stack trace from previous location where exception was thrown --- at Prism.Navigation.PageNavigationService+<DoNavigateAction>d__20.MoveNext () [0x0010c] in <d8c75a611c3d4353a4bfda6337f9efd1>:0 --- End of stack trace from previous location where exception was thrown --- at Prism.Navigation.PageNavigationService+<ProcessNavigationForContentPage>d__13.MoveNext () [0x00198] in <d8c75a611c3d4353a4bfda6337f9efd1>:0 --- End of stack trace from previous location where exception was thrown --- at Prism.Navigation.PageNavigationService+<ProcessNavigation>d__10.MoveNext () [0x0016b] in <d8c75a611c3d4353a4bfda6337f9efd1>:0 --- End of stack trace from previous location where exception was thrown ---
... View more
09-16-2019
11:08 AM
|
0
|
1
|
415
|
POST
|
I’m looking for something like Map.FlashGeometry from WPF SDK but in Xamarin Forms. Should I use Xamarin’s Animation methods instead? Any examples?
... View more
04-27-2017
05:47 AM
|
0
|
0
|
517
|
POST
|
Hey Chad! Thanks for you answer. We tried your suggestion without any lucky, but your hint about labeling got us digging into the right path. One thing led to another and we managed to find a Rotation Expression with a wrong field name. For those reading this, I set the FeatureLayer Renderer property to null trying to isolate the issue. Somehow, the feature layer could be added to the Map OperationalLayers. I did some debugging and found out the RotationExpression with some unexpected fields. Turns out that some Copy/Paste was the culprit. Hey Jennifer! Thanks for your attention too. Interesting behavior you found with the new build. I wouldn’t say it was a bug, because my symbology had this incorrect setting. Btw, ESRI, please improve your error messages. It would be helpful to have, in this case, a message pointing out to “where” this wrong field appear. Thanks again.
... View more
04-19-2017
05:07 AM
|
0
|
0
|
647
|
POST
|
Hello, I have been struggling with a weird exception lately. My context: - Xamarin Forms (testing on a Android device) - Basemap/BaseLayers loaded successfully - While loading some feature tables from a SQLite geodatabase (multiple tables are loaded properly except by two similar ones) Relevant parts: try { var geodatabase = await Geodatabase.OpenAsync(<path>); var featureTables = geodatabase.GeodatabaseFeatureTables; foreach (var featureTable in featureTables) { var featureLayer = new FeatureLayer(featureTable); featureLayer.Name = featureTable.TableName; _mapView.Map.OperationalLayers.Add(featureLayer); //Exception thrown on the ase_ctaponto and ase_cteponto } } catch (Exception ex) { throw ex; //Breakpoint here } The exception: Type: ArcGISException Message: "Not found: Field does not exist." ErrorCode: 7 InnerException: (null) StackTrace: at Esri.ArcGISRuntime.ArcGISException.HandleCoreError (RuntimeCoreNet.GeneratedWrappers.CoreError error, System.Boolean throwException) [0x00013] in <687a544c38e8410dbac0acfc0843ba7e>:0 at RuntimeCoreNet.GeneratedWrappers.Interop.CheckError (System.IntPtr errorHandle, System.Boolean throwOnFailure, System.Runtime.InteropServices.GCHandle wrapperHandle) [0x0002e] in <687a544c38e8410dbac0acfc0843ba7e>:0 at RuntimeCoreNet.GeneratedWrappers.CoreVector.Insert (System.Int64 position, RuntimeCoreNet.GeneratedWrappers.CoreElement value) [0x00020] in <687a544c38e8410dbac0acfc0843ba7e>:0 at Esri.ArcGISRuntime.RuntimeCollection`1 .InsertItem (System.Int32 index, T item) [0x00064] in <687a544c38e8410dbac0acfc0843ba7e>:0 at Esri.ArcGISRuntime.RuntimeObservableCollection`1 .InsertItem (System.Int32 index, T item) [0x0000d] in <687a544c38e8410dbac0acfc0843ba7e>:0 at Esri.ArcGISRuntime.RuntimeCollection`1 .Add (T item) [0x00007] in <687a544c38e8410dbac0acfc0843ba7e>:0 at TEST.LoadMapBehavior+<CarregarCamadasEditaveis>d__41.MoveNext () [0x0049d] in Path/MyFile.cs:198 We tried regenerate the geodatabase file multiple times, both on ArcMap desktop and inside the app using ArcGis rest services API. What I am missing? If I failed to provide sufficient information about the problem, please let me know.
... View more
04-18-2017
07:40 AM
|
0
|
3
|
1645
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|