Android开发中所遇到的BUG汇总(持续更新)

    xiaoxiao2021-12-14  21

    The following classes could not be instantiated: - android.support.v7.internal.app.WindowDecorActionBar (Open Class, Show Exception, Clear Cache)

    解决方案: 将应用theme定义更加精确 找到应用theme 例:

    <style name="AppTheme"parent="Theme.AppCompat.Light.DarkActionBar"/>

    改为

    <style name="AppTheme"parent="Base.Theme.AppCompat.Light.DarkActionBar"/>

    Base.Theme.AppCompat.Light.DarkActionBar是Theme.AppCompat.Light.DarkActionBar的父主题

    转载请注明原文地址: https://ju.6miu.com/read-962252.html

    最新回复(0)