I have faced architecture related issue in Android API level 25, Nexus 9, [ issue- map doesn't load, app just crashes].
I debugged and It can be solved by adding supported architecture in the gradle file but I am not sure should it be done or is there any other way through ESRI ?
Adding this works,
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
Adding architectural related code sometimes gets rejected by google play store.
Hi Devendra,
Can you provide some more information please.
- What version of the ArcGIS Runtime SDK for Android are you using?
- What architecture is your Nexus 9 device (ARM 32 or 64 bit)?
- At what point does your app crash, as soon as it makes the first call into the ArcGIS Runtime SDK?
- Can you provide a stack trace or error logs from LogCat?
Note - the ArcGIS Runtime SDK for Android 100.6.0 supports the following ABIs:
- armeabi-v7a
- arm64-v8a
- x86
We don't support x86_64, armeabi and mips.
Gunther
Hi Gunther,
1 . I am using ArcGIS android SDK 100.2.1
[ Reason- iOS 9 devices are not supported in later versions and we want to keep both the platforms on same versions ] [ we have other plugin dependencies, where we have to use Java 6 and cannot go to Java 7/8, hence cannot use Android SDK 100.4 or later ]
2. Nexus 9 is 64 bit device
3. App crashes soon it is opened
4. This is the error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.aurigo.mobile/xyz.xyz.xyz.MapActivity}: 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: 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
let me know if I should provide more information.
Hey Gunther, need to know if we have any solution to this !!
Hi Devendra,
From the call stack you provided, it looks like an exception might occur when initialising the MapView. Does the call stack provide further information beyond this line?
```
com.esri.arcgisruntime.mapping.view.MapView
```
Could you also share your code that creates the ArcGISMap and sets it into the MapView?
Just to clarify, you only see the crash without the following in your gradle script?
```
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
```
If you add this code, the MapView initialises and your map renders fine?
Thanks, Gunther
I don't get any additional information other than that trace. And yes,
this does the magic,'
ndk {
abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
}
need to just make sure, play store will not block the deployment.