「Android/開発環境/AndroidStudio/ビルドバージョンアップ/build.gradle」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→AndroidStudio-4.0.1のbuild.gradle) |
|||
行63: | 行63: | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
+ | gradle/wrapper/gradle-wrapper.properties | ||
+ | <pre> | ||
+ | distributionBase=GRADLE_USER_HOME | ||
+ | distributionPath=wrapper/dists | ||
+ | zipStoreBase=GRADLE_USER_HOME | ||
+ | zipStorePath=wrapper/dists | ||
+ | distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip | ||
+ | </pre> | ||
+ | |||
==AndroidStudio-3.1.3のbuild.gradle== | ==AndroidStudio-3.1.3のbuild.gradle== | ||
プロジェクト直下のbuild.gradle | プロジェクト直下のbuild.gradle |
2020年7月30日 (木) 11:40時点における版
AndroidStudio-4.0.1のbuild.gradle
プロジェクト直下のbuild.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath "com.android.tools.build:gradle:4.0.1" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
app/build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 30 defaultConfig { applicationId "com.example.myapplicationandroid11" minSdkVersion 16 targetSdkVersion 30 versionCode 1 versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: "libs", include: ["*.jar"]) implementation 'androidx.appcompat:appcompat:1.1.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test.ext:junit:1.1.1' androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0' }
gradle/wrapper/gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
AndroidStudio-3.1.3のbuild.gradle
プロジェクト直下のbuild.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { google() jcenter() } } task clean(type: Delete) { delete rootProject.buildDir }
app/build.gradle
apply plugin: 'com.android.application' android { compileSdkVersion 28 defaultConfig { applicationId "jp.co.example.myapplicationp2.myapplicationp2" minSdkVersion 15 targetSdkVersion 28 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.android.support:appcompat-v7:28.0.0-rc01' implementation 'com.android.support.constraint:constraint-layout:1.1.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.2' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' }