Confirmed users
355
edits
Nalexander (talk | contribs) |
Nalexander (talk | contribs) |
||
Line 25: | Line 25: | ||
To install a particular version, use a command like the following: | To install a particular version, use a command like the following: | ||
android update sdk --all --no-ui --filter "build-tools-21.1.1" | android update sdk --all --no-ui --filter "build-tools-21.1.1" | ||
== Really quick start == | |||
Try: | |||
./mach ide intellij | |||
or | |||
./mach ide androidstudio | |||
That should build and package your tree, prepare the IDE files, and open the project in the IDE of your choice. | |||
Unfortunately, IntelliJ (and maybe Android Studio) follows the symlink, giving the wrong path in the import dialog. Correct the path manually so that it is <tt>$OBJDIR/mobile/android/gradle</tt>, where <tt>$OBJDIR</tt> is your object directory. (The correct directory is printed by the <tt>mach ide</tt> command.) Select ''OK'' to complete the import. Try it out by choosing ''Build'' > ''Rebuild project''! | |||
The <tt>mach ide</tt> command always builds and packages your tree, so it can be a little slow. After you've run it once, you can usually just open the existing project in your IDE directly. | |||
== Quick start == | == Quick start == |