Itai Ganot Itai Ganot - 3 months ago 238
Android Question

How to install android constraint layout tools outside of Android Studio by using the command line?

I'm manually installing an Android-Gradle build server which means that I'm not using Android Studio SDK but instead using the

android update sdk
command to install the required tools.

I was able to install most of the packages which are required for the build to finish successfully but there are some tools which I'm unable to find:

Following @CommonsWare comment, here's the output of the build (which shows that the tools are being looked for at the repositories automatically but not found:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':Company'.
> Could not resolve all dependencies for configuration ':Company:_productionDebugCompile'.
> Could not find
Searched in the following locations:
Required by:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 15.163 secs

Any idea how they can be installed manually (not through Android Studio)?

Thanks in advance,


It is not possible without Android Studio 2.2 Beta yet, but if you have it somewhere, then you just need to copy the m2repository from your sdk/extras to your project sdk/extras folder.

So if you have your project built in an Android Studio:

  1. check the project's sdk location (File/Project Structure : SDK location).
  2. go to your_sdk_location/extras folder and copy m2repository
  3. paste the folder to your existing project's sdk/extras folder.
  4. rebuild your project.