直接執行就可以跑在模擬器上了阿
剛開始我也是這樣想
但是自從換電腦後
又是另一回事了
一開啟畫面時馬上出現
Render problem
-Failed to load AppCompat ActionBar with unknown error.
The following classes could not be instantiated:
- android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
Render problem
-Failed to load AppCompat ActionBar with unknown error.
The following classes could not be instantiated:
- android.support.v7.widget.ActionBarContainer (Open Class, Show Exception, Clear Cache)
- android.support.v7.widget.ActionBarContextView (Open Class, Show Exception, Clear Cache)
- android.support.v7.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)
看起來並不單純了
東翻西找後
結果發現直接把 Style 修改成
Base.Theme.AppCompat.Light.DarkActionBar
這樣就能順利進行下面的開發了
歡迎轉載,請記得註明出處。
沒有留言:
張貼留言