2011-03-07 65 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

相關問題