2014-10-12 67 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

相关问题