teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

build.gradle(app)と、もう一つbuild.gradle(project)のコードを記載

2017/09/30 04:57

投稿

black-to
black-to

スコア18

title CHANGED
File without changes
body CHANGED
@@ -26,4 +26,61 @@
26
26
  apply plugin: 'realm-android'に、classpath "io.realm:realm-gradle-plugin:3.7.2"を追加し、Syncしました。
27
27
 
28
28
  ###補足情報(言語/FW/ツール等のバージョンなど)
29
- より詳細な情報
29
+ より詳細な情報
30
+ apply plugin: 'com.android.application'
31
+ apply plugin: 'realm-android'
32
+
33
+ android {
34
+ compileSdkVersion 26
35
+ buildToolsVersion "26.0.2"
36
+ defaultConfig {
37
+ applicationId "fit.todolist"
38
+ minSdkVersion 15
39
+ targetSdkVersion 26
40
+ versionCode 1
41
+ versionName "1.0"
42
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
43
+ }
44
+ buildTypes {
45
+ release {
46
+ minifyEnabled false
47
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
48
+ }
49
+ }
50
+ }
51
+
52
+ dependencies {
53
+ compile fileTree(dir: 'libs', include: ['*.jar'])
54
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
55
+ exclude group: 'com.android.support', module: 'support-annotations'
56
+ })
57
+ compile 'com.android.support:appcompat-v7:26.+'
58
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
59
+ compile 'com.android.support:design:26.+'
60
+ testCompile 'junit:junit:4.12'
61
+ }
62
+
63
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
64
+
65
+ buildscript {
66
+ repositories {
67
+ jcenter()
68
+ }
69
+ dependencies {
70
+ classpath 'com.android.tools.build:gradle:2.3.3'
71
+ classpath "io.realm:realm-gradle-plugin:3.7.2"
72
+
73
+ // NOTE: Do not place your application dependencies here; they belong
74
+ // in the individual module build.gradle files
75
+ }
76
+ }
77
+
78
+ allprojects {
79
+ repositories {
80
+ jcenter()
81
+ }
82
+ }
83
+
84
+ task clean(type: Delete) {
85
+ delete rootProject.buildDir
86
+ }