简体   繁体   中英

How to specify earlier Build Tools

When building from the command line, you usually need to use an earlier Build Tools, like 18.1.1.

It builds fine when that is the "latest" you have installed, but if you have 19.1.0 and try to build, even with

sdk.buildtools=18.1.1

added to your project.properties, it still complains:

The SDK Build Tools revision (18.1.1) is too low for project 'Xxx'. Minimum required is 19.1.0

Is there any other setting that I can make/change to get it to use 18.1.1 without uninstalling 19.1.0?

In the main build.xml I see:

${android.build.tools.dir}

But I can't find where it's defined.

Thanks!

So anyway the answer is -- Android SDK Manager does not install new version of Build Tools but does automatically suggest updating other tools. So when you see above do this:

  1. Open "Android SDK Manager".
  2. Tick latest version of the "Android SDK Build-tools".
  3. Install packages...

And you're done. Build should just work with restart.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM