简体   繁体   English

更改库的Android Build Tools版本是否安全?

[英]Is it safe to change the Android Build Tools version of a library?

I imported a (commercial) charting library as a module into my app project. 我将(商业)图表库作为模块导入到我的应用程序项目中。

For my app I'm using the latest Build Tools version "21.1.2" but the library still uses "19.1.0". 对于我的应用程序,我使用的是最新的Build Tools版本“21.1.2”,但该库仍然使用“19.1.0”。

Now I wonder if it's safe to change the version of the library to "21.1.2" in it's build.gradle file or if it would be recommended to install the Build Tools "19.1.0" via the SDK Manager. 现在我想知道在它的build.gradle文件中将库的版本更改为“21.1.2”是否安全,或者是否建议通过SDK Manager安装Build Tools“19.1.0”。

Are there any problems that could occur using a different (newer) Build Tools version? 使用不同的(较新的)Build Tools版本是否会出现任何问题?

Are there any problems that could occur using a different (newer) Build Tools version? 使用不同的(较新的)Build Tools版本是否会出现任何问题?

In general upgrading should be fine. 一般来说升级应该没问题。

A couple things to be aware of 有几点需要注意

  1. You'll need to obviously have the necessary build tools version either on your local machine (Android Studio will detect it and offer to download it for you) or on your build server. 显然,您需要在本地计算机上安装必要的构建工具版本(Android Studio将检测它并提供为您下载)或在构建服务器上。
  2. There's a small chance that a change to the build tools could deprecate something, however any break should happen at compile time. 对构建工具的更改可能会弃用某些东西,但是任何中断都应该在编译时发生。

So if it successfully builds you should be good to go. 因此,如果它成功构建,你应该很高兴。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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