2

安卓版 - 安卓6.0.1 設備 - 福邦帆布A1 SDK級別-target 23 &分鐘14地圖沒有顯示在Android的棉花糖最新更新

我對Android應用程序的工作是基於supportMapFragment()從JSON格式的服務器獲取經緯度&,但這對我來說不是問題。 我的問題是我在這個應用程序使用的是Android棉花糖設備(Micromax的帆布A1)的運行完全正常,但最新的系統更新,我無法訪問應用程序後,因爲它總是顯示了這些例外:

Exception - Process: com.blucursor.busapp, PID: 6099 
    android.view.InflateException: Binary XML file line #7: Binary XML file line #7: Error inflating class fragment 
      at android.view.LayoutInflater.inflate(LayoutInflater.java:539) 
      at android.view.LayoutInflater.inflate(LayoutInflater.java:423) 
      at com.blucursor.busapp.MapFragment.onCreateView(MapFragment.java:119) 
      at android.support.v4.app.Fragment.performCreateView(Fragment.java:1962) 
      at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1016) 
      at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1197) 
      at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738) 
      at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1562) 
      at android.support.v4.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:535) 
      at android.support.v4.app.FragmentStatePagerAdapter.finishUpdate(FragmentStatePagerAdapter.java:163) 
      at android.support.v4.view.ViewPager.populate(ViewPager.java:1106) 
      at android.support.v4.view.ViewPager.populate(ViewPager.java:952) 
      at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474) 
      at android.view.View.measure(View.java:18794) 
      at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715) 
      at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461) 
      at android.view.View.measure(View.java:18794) 
      at android.support.v4.widget.DrawerLayout.onMeasure(DrawerLayout.java:940) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951) 
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) 
      at android.support.v7.internal.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:124) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951) 
      at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465) 
      at android.widget.LinearLayout.measureVertical(LinearLayout.java:748) 
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:630) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951) 
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951) 
      at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1465) 
      at android.widget.LinearLayout.measureVertical(LinearLayout.java:748) 
      at android.widget.LinearLayout.onMeasure(LinearLayout.java:630) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951) 
      at android.widget.FrameLayout.onMeasure(FrameLayout.java:194) 
      at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2643) 
      at android.view.View.measure(View.java:18794) 
      at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100) 
      at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1216) 
      at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452) 
      at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107) 
      at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013) 
      at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858) 
      at android.view.Choreographer.doCallbacks(Choreographer.java:670) 
      at android.view.Choreographer.doFrame(Choreographer.java:606) 
      at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844) 
      at android.os.Handler.handleCallback(Handler.java:739) 
      at android.os.Handler.dispatchMessage(Handler.java:95) 
      at android.os.Looper.loop(Looper.java:148) 
      at android.app.ActivityThread.main(ActivityThread.java:5417) 
      at java.lang.reflect.Method.invoke(Native Method) 
      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
    Caused by: android.view.InflateEx 

從一個小時後Google搜索後,我發現一些解決方案建議添加一些權限嘗試所有,但沒有成功。

+1

應該有更多的堆棧跟蹤,而不僅僅是你發佈的節。以「引起」爲前綴的連續節和一個例外,將有助於進一步澄清你的困難來源。 – CommonsWare

+0

問題出現在您的佈局xml文件中。在這裏發佈你的XML文件。 –

+1

如果存在xml問題,那麼爲什麼它在舊版本上工作正常。它只在我更新到最新版本的Android之後停止工作,並且它仍然在nexus 5(棉花糖)問題中僅與Micromax canvas A1(即android one)設備一起工作。 – VishAl

回答

2

我真的不記得我是如何解決它,因爲我嘗試了很多事情像

  1. 我降級我的更新。
  2. 出廠設置。
  3. SIM和SD卡沒有插入它們。
  4. 其中添加我的應用程序需要根據SDK 23

其中一個做的伎倆,我希望它可以幫助的人同樣的問題,其需要的清單文件中的所有權限。

你可以嘗試其中的一種或所有這些。 P.S.:現在它在同一臺設備上工作。 對不起,不準確。