Android Studio 抽风了

2015-06-14 14:49:50 +08:00
 fetich

一段时间没有使用Android Studio,这期间将一个项目移动了位置。当再次用Android Studio打开该项目时,XML文件有部分都是红色,如下提示:
1. Couldn't resolve resource @color/Alert Exception raised during rendering: Color value '@color/Alert' must start with #

2.
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/CustomLight" >
icon、lable、theme三项引号内容都是红色,提示内容是Cannot resolve symbol '@style/CustomLight' 之类的。

其他文件没有错误,编译也没有问题,XML文件之前都是好好的,没有任何错误啊,这是怎么回事?请指教。

1811 次点击
所在节点    问与答
2 条回复
fetich
2015-06-14 18:07:27 +08:00
我要疯了,Android Studio放下一段时间,在拿起来感觉不会用了。。。

现在红字不会显示了,但是改了代码,模拟器根本不显示我的应用,这又是怎么回事!!!
sisyphus60
2015-06-14 22:24:15 +08:00
会不会是dependencies更新了,然后识别什么的有问题了。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/198455

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX