I can't workout how to add the CordovaLib
directory as a module dependency in Android Studio.
(NOTE: this is the first time I've ever used Android Studio, so possibly I just don't know what I'm doing)
I'm using:
- OSX Yosemite
- Android Studio 1.1.0
- Cordova 4.3
Here are the steps I have taken:
- Create new cordova project
- Add android platform and some cordova plugins
- Import the generated project into Android Studio (NOTE: when it asks about the gradle wrapper, I say no and just point it to where I have gradle installed -
/usr/local/Cellar/gradle/2.2.1/libexec
) - Try to build - at this point it will complain for several of the Cordova plugins that
cannot find symbol class CordovaPlugin
Obviously it doesn't know about the CordovaLib
subproject. This is what I'm trying to fix.
I can't work out how to tell the Android Studio that CordovaLib
is a module dependency.
I've gone to the Project Structure window, but can't see any way to link to CordovaLib.
Clicking the "+" buttons does not do anything. I can't work out if I'm doing something wrong, or there are bugs in Android Studio when importing the project...
Can someone please confirm if I'm doing something wrong?
Or please confirm if they are able to import Cordova generated projects into Android Studio, using Cordova 4.3 and Android Studio 1.1.0.
Thanks!