Select to view content in your preferred language

Error Inflating Mapview in Android Pie Device (Api Level 28)

1323
1
09-19-2020 04:13 AM
Nandha_KumarSaravanan
New Contributor

Hi,

I am trying to create a Android app in Android Studio (Latest Android studio IDE- Ver 4.0.1) using ArcGIS SDK for Android 10.2.9.

I am facing a error while I run the application in my real mobile device - Android Pie (Api Level 28).

It says there is an error inflating the mapview.

Note: App strangely works in my older version mobile (API 19). Not working in newer API Version 28.

I have even added the abifilters seeing previous posts related to it. But nothing works.

Below is the error:

Caused by: android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class com.esri.android.map.MapView
Caused by: android.view.InflateException: Binary XML file line #10: Error inflating class com.esri.android.map.MapView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
at android.view.LayoutInflater.createView(LayoutInflater.java:651)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:794)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:867)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:420)
at android.app.Activity.setContentView(Activity.java:2836)
at com.lntnxt.samplebasemapsov.MainActivity.onCreate(MainActivity.java:38)
at android.app.Activity.performCreate(Activity.java:7224)
at android.app.Activity.performCreate(Activity.java:7213)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2926)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Tags (1)
0 Kudos
1 Reply
MarkBaird
Esri Regular Contributor

The 10.2.9 release of ArcGIS Runtime is a very old release which is now retired.  Things have moved on a lot in the last few years.

We do however regularly update our APIs and add new features to support the latest devices.  Take a look at our 100.9.0 release here and you should have a lot more success.  ArcGIS Runtime SDK for Android (latest) | ArcGIS for Developers 

Does this help?