2014-10-12 101 views
0

我在我的android studio項目中使用actionbarsherlock模塊出現問題。我成功地將它作爲該項目的圖書館,但我無法從中導入。 「import com.actionbarsherlock ...」只是劑量的工作。我Settings.gradle看起來是這樣的:在android studio中使用模塊導入

include ':app', ':actionbarsherlock' 

的actionbarsherlock模塊在同一文件夾中的「應用程序」,「.idea」和‘建設’。 可能的位置是問題,還是有其他東西我失蹤?

回答

0

您的settings.gradle中的include聲明只是將該項目作爲Gradle構建中的子項目。然後,您需要將該項目作爲依賴項包含在build.gradle中。

dependencies { 
    compile project(':actionbarsherlock') 
} 
+0

謝謝:)這就是問題所在 – Talkopel 2014-10-13 12:21:12