Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.esri.arcgisruntime.mapping.view.MapView
Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.esri.arcgisruntime.mapping.view.MapView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.view.LayoutInflater.createView(LayoutInflater.java:656)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:798)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:738)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:869)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:832)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
I am downloaded SDK100.0.0 for android ,and add to lib . I created a xml , but MapView throw InflateException. So i try to install the SDK that According to the official recommendation,but sync failed again,"Failed to resolve: com.esri.arcgisruntime:arcgis-android:100.0.0".
I will be cry. Who can talk me it is why? thanks.
Solved! Go to Solution.
Thanks Alexander.
I may be happy too early, although 10.2.X can be used, but not what I want. I want 100.0, but synchronization failed again.I can download aar use url "http://dl.bintray.com/esri/arcgis/com/esri/arcgisruntime/arcgis-android/100.0.0/ " ,but it is failed when i use maven.I try to do it in other compter, it is failed too.
in module buid.gradle:
dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support:support-vector-drawable:25.3.1' // compile 'com.esri.arcgis.android:arcgis-android:10.2.8' compile 'com.esri.arcgisruntime:arcgis-android:100.0.0' // compile files('libs/arcgis-android-api.jar') }
in project build.gradle:
allprojects { repositories { jcenter() maven { url 'http://dl.bintray.com/esri/arcgis' } } }
I am in china, I open the vpn when sync gradle.
When i use SDK of libs, there is this "java.lang.NoClassDefFoundError: Failed resolution of: Lcom/esri/arcgisruntime/R$drawable;"
like this : NoClassDefFoundError - custom plugin · Issue #894 · eclipsesource/tabris-js · GitHub
Interesting...
As a test, can you try to build our sample project located here:
GitHub - Esri/arcgis-runtime-samples-android: ArcGIS Runtime SDK for Android Samples
This should at least give us an idea if it is something network related or something related to your app configuration.