我升级的Android Studio来0.5.0没有任何问题,直到我开始写code。它是如此不可思议。汽车code完成后没有工作了。没有下拉列表中得到了露面。更糟糕的是,我特意写了错误的语法,但在IDE失败,因为它仍然在滚动行的作用(右)的自动报警。
I upgraded Android Studio to 0.5.0 without any issues until I started writing code. It's so weird. Auto code completion didn't work any more. No drop-down list got showed up. Even worse, I intentionally wrote wrong syntax but the IDE failed to warn automatically as it still does at the scrolling line (on the right).
我敢肯定,我已经变成了com.android.tools.build:gradle:0.9 +
。
I'm sure that I've already changed into 'com.android.tools.build:gradle:0.9.+'
.
任何帮助吗?
更新:
我想通了。原因是,我不小心打开文件>省电模式这确实阻止自动完成,没有因为Android的工作室0.5.0本身。
I figured out. The cause is, I accidentally turned File > Power Save Mode which does block auto completion, not because of Android Studio 0.5.0 itself.
我看到了同样的事情。在我来说,我认为这是因为在build.gradle定制sourceSets的。对我来说,注释掉了resources.srcDirs'线并重新同步摇篮使我的语法高亮回来。
I'm seeing the same thing. In my case I think it's because of custom sourceSets in build.gradle. For me, commenting out the 'resources.srcDirs' line and re-syncing Gradle made my syntax highlighting come back.
这个想法来自
https://$c$c.google.com/p/android/issues/detail?id=66794&q=android%20studio&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars
当然,它更是一个错误,但至少这是一个解决方法。
Surely it much be a bug, but at least this is a work-around.