問題情況:
更新AS3.1.2後今天打開項目發現佈局文件中的控件不顯示,preview右上角顯示有錯誤:Render problem;Failed to instantiateone or more classes——The following classes could not be instantiated。如圖所示:
解決方法:
在values->styles.xml中把
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
加上Base,寫爲:
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
問題解決:
雖然問題解決,但是原理不是很明白,希望有大神解釋一下(;´д`)ゞ