Android的工作室。有R级难题 [英] Android Studio. Problems with R class

查看:138
本文介绍了Android的工作室。有R级难题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经升级到Android 0.1.6工作室既然无法编译我的项目。
我得到的code至极的错误81正在与应用程序的previous版本完美的罚款。没有code的变化。

I've upgraded to Android Studio 0.1.6 and cannot compile my project since. I'm getting 81 errors in code wich was working perfectly fine with the previous version of the application. No code changes.

所有有关R类的错误,例

All of the errors related to the R class, examples:

java: cannot find symbol
symbol:   variable string
location: class %mypackagename%.R

java: cannot find symbol
symbol:   variable id
location: class %mypackagename%.R

我试着去掉代的内容文件夹了几下,它得到的再生,但它并没有解决问题。

I've tried to remove the content of the "gen" folder a few times, it get's regenerated, but it doesn't fix the problem.

我看了所有在互联网上的解决方案,但无法找到一个类似的问题任何人。其导入他们的项目到Android Studio的问题的一些人,但我的项目是原创性的IntelliJ IDEA创建,我一直在努力将其与Android的工作室。

I've looked for a solution all over the Internet, but can't find anybody with a similar problem. Some people having problems importing their projects to Android Studio, but my project was originality created in intellij idea and I keep working on it with Android Studio.

BTW,IntelliJ IDEA的可以编译和运行项目仍在,但我习惯了Android的工作室了。

BTW, Intellij IDEA can compile and run project still, but I got used to Android Studio already.

我在Mac OS 10.8的工作,如果这有什么差别。

I'm working on a MAC OS 10.8 if it makes any difference.

您的帮助是多少AP preciated。

Your help is much appreciated.

更新1:
我检查<一href=\"http://stackoverflow.com/questions/16586899/android-studio-cannot-resolve-r-in-imported-project?rq=1\">this螺纹,无论是创和src选定为源,我没有进口android.r中的code随时随地

UPDATE 1: I've checked this thread, both gen and src selected as sources and I don't have "import android.r" anywhere in the code

推荐答案

这是在0.1.6一个已知的bug。谷歌曾建议关闭外部建立在preferences>编译器作为一个临时的解决办法

This is a known bug in 0.1.6. Google has suggested turning off external builds in Preferences > compiler as a temporary fix

@simon这家伙应该是能够解决在Android Studio中一个已知的bug,谷歌一直没有能够彻底追查吗?如果你想在这样的负面意见,请首先做你的研究。

@simon this guy is supposed to be able to resolve a known bug in android studio that google hasn't been able to completely track down yet? If you're going to negatively comment on something like this please do your research first.

<一个href=\"http://$c$c.google.com/p/android/issues/detail?id=56843&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars\" rel=\"nofollow\">http://$c$c.google.com/p/android/issues/detail?id=56843&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars

这篇关于Android的工作室。有R级难题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆