为了代码的规范性,我们可以把compileSdkVersion、buildToolsVersion等统一定义成一个变量,然后在使用的地方,进行引用即可。
1.在项目的build.gradle的最后进行定义,如下图。

2.然后在app的build.gradle中进行引用,如下图。


这样,多个module的build.gradle也可以统一。
为了代码的规范性,我们可以把compileSdkVersion、buildToolsVersion等统一定义成一个变量,然后在使用的地方,进行引用即可。
1.在项目的build.gradle的最后进行定义,如下图。
2.然后在app的build.gradle中进行引用,如下图。
这样,多个module的build.gradle也可以统一。
本文标题:studio中,把compileSdkVersion、targe
本文链接:https://www.haomeiwen.com/subject/qpaemxtx.html
网友评论