Tools:
Android Studio2.0
gradle-2.10
I.. gradle file
When we create a new Android project, Andriod Studio automatically creates multiple Gradle files and directories for us, with the following details:
Let's analyze each of these directories in the following sections:
Second, the Build.gradle under the app
Apply plugin: ' Com.android.application ' android { compilesdkversion buildtoolsversion "23.0.3" defaultconfig { ApplicationID "Xidian.dy.com.basicapp" minsdkversion targetsdkversion Versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled false Proguardfiles getdefaultproguardfile (' proguard-android.txt '), ' Proguard-rules.pro ' } }}dependencies { Compile Filetree (dir: ' Libs ', include: [' *.jar ']) testcompile ' junit:junit:4.12 ' compile ' Com.android.support:appcompat-v7:23.4.0 '}
- Apply plugin to declare the program, which declares it to be an Android app
- Compilesdkversion 23来 claims to compile the SDK version used by the Android program
- Buildtoolsversion "23.0.3"
Gradle Building Android Projects