質問編集履歴

1

Gradleファイルを追記させていただきました

2017/04/06 03:18

投稿

sakuma_yujin
sakuma_yujin

スコア27

test CHANGED
File without changes
test CHANGED
@@ -54,7 +54,141 @@
54
54
 
55
55
 
56
56
 
57
-
57
+ ###Gradleファイル(Gradleファイルを追記させていただきます)
58
+
59
+
60
+
61
+ **build.gradle(Project:FirstOpenandFragment)**
62
+
63
+ ```Gradle
64
+
65
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
66
+
67
+
68
+
69
+ buildscript {
70
+
71
+ repositories {
72
+
73
+ jcenter()
74
+
75
+ }
76
+
77
+ dependencies {
78
+
79
+ classpath 'com.android.tools.build:gradle:2.1.3'
80
+
81
+
82
+
83
+ // NOTE: Do not place your application dependencies here; they belong
84
+
85
+ // in the individual module build.gradle files
86
+
87
+ }
88
+
89
+ }
90
+
91
+
92
+
93
+ allprojects {
94
+
95
+ repositories {
96
+
97
+ jcenter()
98
+
99
+ }
100
+
101
+ }
102
+
103
+
104
+
105
+ task clean(type: Delete) {
106
+
107
+ delete rootProject.buildDir
108
+
109
+ }
110
+
111
+
112
+
113
+ ```
114
+
115
+
116
+
117
+ **build.gradle(Module:app)**
118
+
119
+ ```Gradle
120
+
121
+ apply plugin: 'com.android.application'
122
+
123
+
124
+
125
+ android {
126
+
127
+ compileSdkVersion 24
128
+
129
+ buildToolsVersion "24.0.2"
130
+
131
+
132
+
133
+ defaultConfig {
134
+
135
+ applicationId "com.example.syoribuuser.firstopenandfragment"
136
+
137
+ minSdkVersion 15
138
+
139
+ targetSdkVersion 24
140
+
141
+ versionCode 1
142
+
143
+ versionName "1.0"
144
+
145
+ }
146
+
147
+ buildTypes {
148
+
149
+ release {
150
+
151
+ minifyEnabled false
152
+
153
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
154
+
155
+ }
156
+
157
+ }
158
+
159
+ }
160
+
161
+
162
+
163
+ dependencies {
164
+
165
+ compile fileTree(dir: 'libs', include: ['*.jar'])
166
+
167
+ testCompile 'junit:junit:4.12'
168
+
169
+ compile 'com.android.support:appcompat-v7:24.2.0'
170
+
171
+ compile 'com.android.support:support-v4:24.2.0'
172
+
173
+
174
+
175
+ }
176
+
177
+
178
+
179
+ ```
180
+
181
+
182
+
183
+ **setting.gradle**
184
+
185
+ ```Gradle
186
+
187
+ include ':app'
188
+
189
+
190
+
191
+ ```
58
192
 
59
193
  ###試したこと
60
194