Android ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view..

ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
意思是:只能在主線程更新UI~~

解決辦法,參考:

Android切換主線程更新UI方法總結

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章