Reputation: 4485
I start learn android development, and I can't figure out how to add library to project. I use Android Studio. I create new project, and I don't have Project Settings in Project Structure.
Upvotes: 9
Views: 18682
Reputation: 4930
You have to do it manually with gradle.
In this post you can see how your project structure should be and how to add a project lib to your project.
A little summary:
then you have to configure your gradle files:
in you settings.gradle you have to include all your moduls -> your TestAddLib and your project libs
include ':TestAddLib', ':TestAddLib:libraries:projectLib'
dependencies { compile project(':TestAddLib:libraries:projectLib') }
Here are more questions about gradle and project libs: general description, build.gradle file of project lib
Upvotes: 0
Reputation: 1388
Right click on your Package name in the Project window and select "Open Module Settings." That should bring up the settings window you're looking for.
Personally, I haven't had any luck what so ever with the Gradle documentation so I've just been importing and creating different projects and trying to figure out how things are set up. I'm sure there is probably some better documentation for it out there somewhere, but I haven't been able to find it yet.
Gradle 1.7 Dependency Handlers
Upvotes: 11