質問編集履歴

1

build.gradleの内容の追加

2018/08/21 04:24

投稿

salt35
salt35

スコア11

test CHANGED
File without changes
test CHANGED
@@ -6,6 +6,170 @@
6
6
 
7
7
 
8
8
 
9
+ ## build.gradleの内容
10
+
11
+ ```app
12
+
13
+ apply plugin: 'com.android.application'
14
+
15
+
16
+
17
+ android {
18
+
19
+ compileSdkVersion 27
20
+
21
+ defaultConfig {
22
+
23
+ applicationId "jp.ac.denpa.design"
24
+
25
+ minSdkVersion 24
26
+
27
+ targetSdkVersion 27
28
+
29
+ versionCode 1
30
+
31
+ versionName "1.0"
32
+
33
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
34
+
35
+ }
36
+
37
+ buildTypes {
38
+
39
+ release {
40
+
41
+ minifyEnabled false
42
+
43
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
44
+
45
+ }
46
+
47
+ }
48
+
49
+ }
50
+
51
+
52
+
53
+ allprojects {
54
+
55
+ repositories {
56
+
57
+ google()
58
+
59
+
60
+
61
+ // If you're using a version of Gradle lower than 4.1, you must instead use:
62
+
63
+ // maven {
64
+
65
+ // url 'https://maven.google.com'
66
+
67
+ // }
68
+
69
+ // An alternative URL is 'https://dl.google.com/dl/android/maven2/'
70
+
71
+ }
72
+
73
+ }
74
+
75
+
76
+
77
+ dependencies {
78
+
79
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
80
+
81
+ implementation 'com.android.support:appcompat-v7:27.0.2'
82
+
83
+ implementation 'com.android.support.constraint:constraint-layout:1.0.2'
84
+
85
+ testImplementation 'junit:junit:4.12'
86
+
87
+ androidTestImplementation 'com.android.support.test:runner:1.0.1'
88
+
89
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
90
+
91
+ }
92
+
93
+
94
+
95
+ repositories {
96
+
97
+ maven {
98
+
99
+ url 'https://maven.google.com'
100
+
101
+ }
102
+
103
+ }
104
+
105
+
106
+
107
+ ```
108
+
109
+ ```AndoroidoStudioProjects
110
+
111
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
112
+
113
+
114
+
115
+ buildscript {
116
+
117
+
118
+
119
+ repositories {
120
+
121
+ google()
122
+
123
+ jcenter()
124
+
125
+ }
126
+
127
+ dependencies {
128
+
129
+ classpath 'com.android.tools.build:gradle:3.1.3'
130
+
131
+
132
+
133
+
134
+
135
+ // NOTE: Do not place your application dependencies here; they belong
136
+
137
+ // in the individual module build.gradle files
138
+
139
+ }
140
+
141
+ }
142
+
143
+
144
+
145
+ allprojects {
146
+
147
+ repositories {
148
+
149
+ google()
150
+
151
+ jcenter()
152
+
153
+ }
154
+
155
+ }
156
+
157
+
158
+
159
+ task clean(type: Delete) {
160
+
161
+ delete rootProject.buildDir
162
+
163
+ }
164
+
165
+
166
+
167
+ ```
168
+
169
+
170
+
171
+
172
+
9
173
  ## エラーメッセージ(Logcat)
10
174
 
11
175
  ```ここに言語を入力