1

每当在 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 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.

4

4 回答 4

6

我已经通过更改主题解决了上述问题,就像您只需将主题更改为默认主题以外的任何主题一样。

于 2015-06-06T08:17:01.400 回答
0

在图形布局视图中指定 android 版本的值以降低值

activity_main.xml:找不到id 2130771996对应的样式

于 2015-05-04T09:32:13.310 回答
0

在“MainActivity”中,请使用“AppCompatActivity”而不是“Activity”或“ActionBarActivity”。

于 2015-08-06T05:55:50.600 回答
0

您只需要重新启动 eclipse 并以管理员身份运行它,有时 sdk 在 c 驱动器中需要以管理员身份加载。

于 2015-10-29T15:33:53.697 回答