In attempting to add a map to an Android app I encountered an error to the extent of:
04-15 17:36:42.036: E/AndroidRuntime(28534): java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
I have read over numerous posts, and articles on what the problem might be and have tried any number of suggestions from:
- verifying uses-library in Manifest
- Adding the Google SDK (as opposed to the Android SDK).
- Extending FragmentActivity (as opposed to Activity).
- Setting up API Keys and adding them to the Manifest.
However, nothing changes the results. The app still crashes when trying to launch that activity, with the same error message.
In an attempt to narrow things down I downloaded the sample application from here, but it crashes with the exact same error message.
Being relatively new to Android, the above sample looked fine, but with it crashing it's hard to tell where the error is. The complete stack trace is can be found here.
I am developing this on a Nexus 4, running Android 4.2.
I would have assumed that the referenced sample app would have at least worked. Am I wrong? Is there something wrong with the sample I've been referencing?