fetich
V2EX  ›  问与答

Android Studio 抽风了

  •  
  •   fetich · Jun 14, 2015 · 2126 views
    This topic created in 3986 days ago, the information mentioned may be changed or developed.

    一段时间没有使用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文件之前都是好好的,没有任何错误啊,这是怎么回事?请指教。

    2 replies    2015-06-14 22:24:15 +08:00
    fetich
        1
    fetich  
    OP
       Jun 14, 2015
    我要疯了,Android Studio放下一段时间,在拿起来感觉不会用了。。。

    现在红字不会显示了,但是改了代码,模拟器根本不显示我的应用,这又是怎么回事!!!
    sisyphus60
        2
    sisyphus60  
       Jun 14, 2015
    会不会是dependencies更新了,然后识别什么的有问题了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3880 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:26 · PVG 12:26 · LAX 21:26 · JFK 00:26
    ♥ Do have faith in what you're doing.