本文介绍了在build.gradle文件中写评论的语法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
查看 build.gradle
文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion21.1.2
defaultConfig {
applicationIdpackage .myapp
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName1.0
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
}
}
}
依赖项{
compile fileTree(dir:'libs',include:['* .jar'])
compile'com.nineoldandroids:library:2.4.0'
}
如果我想为我为什么选择此库用于此项目发表评论,该怎么办?
在
buil中写评论的语法是什么d.gradle
档案
解决方案
简单:
//单行注释
/ *
多元
行
注释
* /
Looking down this
build.gradle
file
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "package.myapp"
minSdkVersion 19
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.nineoldandroids:library:2.4.0'
}
What if I would like to write a comment on why did I chose this library for this project,
what is the syntax for writing comments in
build.gradle
file?
解决方案
Easy:
// Single line comment
/*
Multi
line
comment
*/
这篇关于在build.gradle文件中写评论的语法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!