亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

錯誤膨脹類片段

錯誤膨脹類片段

白衣非少年 2019-07-12 10:28:49
錯誤膨脹類片段我知道錯誤Unable to start activity ComponentInfo{de.androidbuch.activiti/de.androidbuch.activiti.task.Activity}:  android.view.InflateException: Binary XML file line #11: Error inflating class fragment當我通過肖像和景觀模式切換時。我在用碎片。我的XML是: <LinearLayout android:id="@+id/mainLayout"                android:orientation="horizontal"                android:layout_width="fill_parent"                android:layout_height="wrap_content" >     <ListView android:id="@+id/android:list"               android:layout_height="wrap_content"               android:layout_width="fill_parent"/>      <fragment android:id="@+id/fragmentDetails"               android:layout_height="fill_parent"               android:layout_width="fill_parent"               class="de.androidbuch.activiti.task.TaskDetailsFragment"/> </LinearLayout>如果我通過景觀和肖像模式切換,一切都很好。但是當我點擊我的片段(我可以看到我的片段),然后切換到另一種模式時,我會得到錯誤。知道我能怎么解決嗎?在這里找到了一些答案但這些都幫不了我.。
查看完整描述

3 回答

?
郎朗坤

TA貢獻1921條經驗 獲得超9個贊

我也犯了同樣的錯誤。我整天都在挖,不知道,但我想我試過了25種解決這個問題的方法。直到凌晨2點,我才發現我錯過了應用程序清單XML的這一行:

<meta-data android:name="com.google.android.gms.version"android:value="@integer/google_play_services_version" />

那條線在里面<application>標簽。我真的希望這對某人有幫助。gl.


查看完整回答
反對 回復 2019-07-12
  • 3 回答
  • 0 關注
  • 436 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號