Android 创建新项目后,Eclipse无法为XML布局加载AppTheme,无法找到相应的样式
每当在Eclipse中创建新项目时,我都会遇到这个问题Android 创建新项目后,Eclipse无法为XML布局加载AppTheme,无法找到相应的样式,android,xml,eclipse,android-layout,new-project,Android,Xml,Eclipse,Android Layout,New Project,每当在Eclipse中创建新项目时,我都会遇到这个问题 Failed to find the style corresponding to the id 2130772021 Failed to find the style corresponding to the id 2130771993 java.lang.NullPointerException Exception details are logged in Window > Show View > Error
Failed to find the style corresponding to the id 2130772021
Failed to find the style corresponding to the id 2130771993
java.lang.NullPointerException
Exception details are logged in Window > Show View > Error Log
The following classes could not be instantiated:
- android.support.v7.internal.app.WindowDecorActionBar (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
在图形布局视图中指定android版本的值以降低值
在图形布局视图中指定android版本的值以降低值
我只需将主题更改为默认主题以外的任何主题即可解决上述问题。我只需将主题更改为默认主题以外的任何主题即可解决上述问题。在MainActivity中,请使用AppCompatActivity而不是Activity或ActionBarActivity。在MainActivity中,请使用AppCompatActivity而不是Activity或ActionBarActivity。您只需重新启动eclipse并以管理员身份运行,有时sdk位于c驱动器中,需要以管理员身份加载 您只需重新启动eclipse并以管理员身份运行它,有时sdk在c驱动器中需要以管理员身份加载 这是一个主题相关的问题。这是一个主题相关的问题。