Android Studio 無法在可視化頁面預覽佈局文件


java.lang.ClassNotFoundException: android.support.v4.view.ViewPropertyAnimatorListener

解決辦法:

把你的style文件中theme改一下

在Theme.AppCompat.Light.DarkActionBar前面加上Base.  如下:

<resources>
    <!-- Base application theme. -->
    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
        <!-- Customize your theme here. -->
    </style>
</resources>




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