2018年12月31日 星期一

[Android]錯誤訊息:Didn't find class "org.apache.http.ProtocolVersion"


問題描述:在跑android的地圖會無法執行並顯示以下錯誤訊息



解決辦法:要在manifest加上以下這行
android:name="org.apache.http.legacy" android:required="false"/>

這個網頁有討論這個問題
https://issuetracker.google.com/issues/79478779

它的意思是,如果沒有用到apache http library就設定不讓它回傳避免error
in app manifest. However app does not use the apache http library, so it should be not be required

修改後就可以執行了

沒有留言: