往下看这build.gradle个文件

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'
}

如果我想写一篇关于why did I chose this library for this project的 comments 呢,

build.gradle个文件中写入注释的语法是什么?

推荐答案

简单:

// Single line comment

/*
 Multi
 line
 comment
*/

Android相关问答推荐

避免在按下肯定按钮时自动取消AlertDialog

无法使用MenuItemColors.Copy()

Android:微调:在代码中设置ArrayAdapter不希望调用On ItemSelected,仅当用户单击微调时调用

在Android中使用Room从SQlite数据库中获取实体列表的正确方式是什么?

数据绑定在Android中等待填充值时显示未填充的值

如何将.txtassets资源 转换为ArrayList<;字符串>;kotlin格式?

如何使用react native下载android中/data/data/[应用程序包名称文件夹]/files中的文件

如何在 Jetpack Compose 中对数据类进行 Parcelize

Android:使用依赖项 ViewModelProviderFactory 初始化 ViewModel 的正确方法

ArrayList 上的 Android intent.getParcelableArrayListExtra 引发 Nullpointer 异常

react 从输入中找到路径'lib/arm64-v8a/libfbjni.so'的本机2个文件

Compose `Icons.Outlined.Star` 没有概述

无法解析依赖项'com.github.smarteist:autoimageslider:1.4.0-appcompat'

使用 Jetpack Compose 时,如何以简单的方式在 Color.kt 中定义 colored颜色 ?

在jetpack compose中将图像添加到脚手架顶部栏

新安装 Expo Go 的 android 设备上的 sdk 46.0.0 (@snack/sdk.46.0.0) 出错

可组合的 fillMaxSize 和旋转不起作用

Android全屏AlertDialog

使用协程访问数据库

在delphi中将Jnet_uri转换为Tbitmap