I was trying to import external Library to my android project in android studio many answers here say it can be done from module in project structure in settings.But since the 0.2.8 update there is no library, module in project structure. how do i import external Library now?
maybe this is a bug in 0.2.8 update. not sure
Step 1: Select Project > Right Click > Open Module Settings (F12) > Projects Settings > Click Modules.
Step 2: Click your Project > you will see 3 tabs : Sources/Path/Dependencies.
Step 3 : Select Dependencies tab. You will see green '+' button to the right of 'Scope' title. Click on this and it will allow you to add Jars and libs.
PS: make the scope of the added jars/libs as Compile
You can set external module in this way
In global setting.gradle file add this line
def projectDialogsDir = file('path_of_the_module')
def rootProjectDescriptor = settings.rootProject
settings.createProjectDescriptor(rootProjectDescriptor, 'yourModule', projectDialogsDir)
include(':yourModule')
Then in the build.gradle files of your app's module, you have just to add, under dependencies
dependencies {
compile project(':yourModule')
}