我在Android N上使用此堆栈跟踪获取崩溃报告:
Fatal Exception: java.lang.IncompatibleClassChangeError: Class rr implements non-interface class rq (declaration of 'rr' appears in /data/app/<package_name>-1/base.apk)
at tb.b(Unknown Source)
at com.google.android.gms.maps.bu.i(Unknown Source)
at com.google.android.gms.maps.bu.a(Unknown Source)
at com.google.android.gms.dynamic.b.a(Unknown Source)
at com.google.android.gms.dynamic.b.a(Unknown Source)
at com.google.android.gms.maps.SupportMapFragment.onCreate(Unknown Source)
at android.support.v4.app.Fragment.performCreate(SourceFile:1939)
at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:978)
at android.support.v4.app.FragmentManagerImpl.onCreateView(SourceFile:2256)
at android.support.v4.view.aq.onCreateView(SourceFile:44)
at android.view.LayoutInflater$FactoryMerger.onCreateView(LayoutInflater.java:189)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at <package_name>.dy.onCreateView(SourceFile:31)
at android.support.v4.app.Fragment.performCreateView(SourceFile:1962)
at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1016)
at android.support.v4.app.FragmentManagerImpl.moveToState(SourceFile:1197)
at android.support.v4.app.BackStackRecord.run(SourceFile:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(SourceFile:1562)
at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(SourceFile:535)
崩溃发生在地图片段的oncreateview中,该片段显示在视图寻呼机中。
这是发生崩溃的行:
View view = inflater.inflate(R.layout.map_fragment, container, false);
有没有人经历过这样的事情?虽然我没有改变任何东西,但这只是在最后一个版本中开始。我正在使用谷歌播放服务9.0.0。我以前从未见过这个。
这是一个错误吗?我该如何解决?
更新
R.layout.map_fragment
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:map="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp" >
<fragment
android:id="@+id/placeDetailsMapFragment"
android:layout_width="wrap_content"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"
map:cameraBearing="0"
map:cameraTilt="30"
map:cameraZoom="15"
map:mapType="normal"
map:uiCompass="true"
map:uiRotateGestures="true"
map:uiScrollGestures="true"
map:uiTiltGestures="true"
map:uiZoomControls="true"
map:uiZoomGestures="true"
tools:ignore="MissingPrefix" />
</LinearLayout>
更新2
更多的崩溃进来,结果只是在Android N上。