简体   繁体   中英

Using module import in android studio

I'm having a problem using the actionbarsherlock module, in my android studio project. I was successful in making it as a library in the project, but I can't import from it. "import com.actionbarsherlock..." just dosent work. my Settings.gradle looks like this:

include ':app',  ':actionbarsherlock'

The actionbarsherlock module is in the same folder as is "App", ".idea" and "build". May the location be the problem, or is there something else I'm missing?

The include statement in your settings.gradle simply includes that project as a subproject in your Gradle build. You will then need to include that project as a dependency in your build.gradle .

dependencies {
    compile project(':actionbarsherlock')
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM