Android Demo项目
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

build.gradle 888B

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 25
  4. defaultConfig {
  5. applicationId "io.hsiao.lesson01"
  6. minSdkVersion 19
  7. targetSdkVersion 25
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. buildToolsVersion '26.0.2'
  19. compileOptions {
  20. sourceCompatibility JavaVersion.VERSION_1_8
  21. targetCompatibility JavaVersion.VERSION_1_8
  22. }
  23. }
  24. dependencies {
  25. implementation fileTree(include: ['*.jar'], dir: 'libs')
  26. implementation 'com.android.support:appcompat-v7:25.1.0'
  27. implementation 'com.android.support.constraint:constraint-layout:1.0.2'
  28. }