質問編集履歴

1

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

2017/09/30 04:57

投稿

black-to
black-to

スコア18

test CHANGED
File without changes
test CHANGED
@@ -55,3 +55,117 @@
55
55
  ###補足情報(言語/FW/ツール等のバージョンなど)
56
56
 
57
57
  より詳細な情報
58
+
59
+ apply plugin: 'com.android.application'
60
+
61
+ apply plugin: 'realm-android'
62
+
63
+
64
+
65
+ android {
66
+
67
+ compileSdkVersion 26
68
+
69
+ buildToolsVersion "26.0.2"
70
+
71
+ defaultConfig {
72
+
73
+ applicationId "fit.todolist"
74
+
75
+ minSdkVersion 15
76
+
77
+ targetSdkVersion 26
78
+
79
+ versionCode 1
80
+
81
+ versionName "1.0"
82
+
83
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
84
+
85
+ }
86
+
87
+ buildTypes {
88
+
89
+ release {
90
+
91
+ minifyEnabled false
92
+
93
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
94
+
95
+ }
96
+
97
+ }
98
+
99
+ }
100
+
101
+
102
+
103
+ dependencies {
104
+
105
+ compile fileTree(dir: 'libs', include: ['*.jar'])
106
+
107
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
108
+
109
+ exclude group: 'com.android.support', module: 'support-annotations'
110
+
111
+ })
112
+
113
+ compile 'com.android.support:appcompat-v7:26.+'
114
+
115
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
116
+
117
+ compile 'com.android.support:design:26.+'
118
+
119
+ testCompile 'junit:junit:4.12'
120
+
121
+ }
122
+
123
+
124
+
125
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
126
+
127
+
128
+
129
+ buildscript {
130
+
131
+ repositories {
132
+
133
+ jcenter()
134
+
135
+ }
136
+
137
+ dependencies {
138
+
139
+ classpath 'com.android.tools.build:gradle:2.3.3'
140
+
141
+ classpath "io.realm:realm-gradle-plugin:3.7.2"
142
+
143
+
144
+
145
+ // NOTE: Do not place your application dependencies here; they belong
146
+
147
+ // in the individual module build.gradle files
148
+
149
+ }
150
+
151
+ }
152
+
153
+
154
+
155
+ allprojects {
156
+
157
+ repositories {
158
+
159
+ jcenter()
160
+
161
+ }
162
+
163
+ }
164
+
165
+
166
+
167
+ task clean(type: Delete) {
168
+
169
+ delete rootProject.buildDir
170
+
171
+ }