2011-03-07 92 views
0

我在eclipse ADT plugin.i中开发android项目。我从github.com下载了一个开源项目(k9电子邮件客户端)。然后我将android 2.2.jar文件添加到项目的引用库文件夹中,但仍然面临语法问题,例如...在Android项目中引用资源文件夹的问题

identity.setSignature(context.getString(R.string.default_signature)); identity.setDescription(context.getString(R.string.default_identity_description));

每当我参考资源文件夹,它显示我的错误..所以请帮助我。

回答

0

看起来像你需要从价值观语言的一种复制的strings.xml要么资源或值文件夹

+0

喜fazo,但问题不在于ONY与价值观文件夹,但也有类似的布局文件夹.... super(context,R.layout.recipient_dropdown_item,null); – dexter 2011-03-07 09:25:17

+0

@saurabh patil:在github上它看起来不错 - 尝试重新加载eclipse。并记住,对于每个R. ,您需要在res文件夹中有。 R.layout.recipient_dropdown_item不应该给你任何错误,这就是为什么你可能复制了这个错误 – fazo 2011-03-07 09:34:52