Android studio自定义变量
16lz
2021-01-23
定义变量:
gradle.properties
COMPILE_SDK_VERSION=25BUILD_TOOLS_VERSION=25.0.0TARGET_SDK_VERSION=23MIN_SDK_VERSION=8
使用变量:
build.gradle中
apply plugin: 'com.android.application'android { compileSdkVersion COMPILE_SDK_VERSION as int buildToolsVersion BUILD_TOOLS_VERSION defaultConfig { minSdkVersion MIN_SDK_VERSION as int targetSdkVersion TARGET_SDK_VERSION as int }
更多相关文章
- android自定义组件
- Android 自定义PopupWindow动画效果
- Android Handler总结1-定义与用法
- android 自定义view 类似loadding从下往上加载的动画
- Android:自定义Dialog
- Android TextView 给文本中指定片段添加自定义点击事件
- Android自定义Dialog以控制其位置和宽高
- android 自定义对话框宽不能占满父layout的解决办法
- android 自定义水平的ProgressBar