I've just upgraded Android Studio to 0.2.11 but now i can no longer import modules (such as how the Facebook SDK is supposed to be imported
I'm pretty sure when i click on Project Structure it should be more like this (with project settings on the left)
Select the source directory of the Module you want to import and click Finish. Open Project Structure Dialog (You can open the PSD by selecting File > Project Structure) and from the left panel click on Dependencies. Select the module from the Module(Middle) section In which you want to add module dependency.
In Android Studio, Right-clicking on the folder to add as library. Editing the dependencies in the build. gradle file, adding: compile fileTree(dir: 'libs', include: '*. jar')}
Modules. A module is a collection of source files and build settings that allow you to divide your project into discrete units of functionality. Your project can have one or many modules, and one module may use another module as a dependency. You can independently build, test, and debug each module.
Make sure you're using gradle 1.8. In your screenshot, looks like you're using 1.6.
Importing a project using the Android Gradle plug-in 0.6.1 and Gradle 1.6 or 1.7 will show the error: "Cannot create directory .idea". The real cause of the project import failure is that this version of the Android Gradle plug-in only supports Gradle 1.8 or later.
From http://tools.android.com/knownissues
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With