質問編集履歴

2

誤字

2017/03/25 07:35

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
 
6
6
 
7
- //src build.gradle
7
+
8
8
 
9
9
  ```java
10
10
 
@@ -19,6 +19,8 @@
19
19
 
20
20
 
21
21
  ```
22
+
23
+ //src build.gradle
22
24
 
23
25
  ```java
24
26
 

1

gradleのコードのついか

2017/03/25 07:34

投稿

edoooooo
edoooooo

スコア476

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
  File/ProjectStructre/+/AndroidLibraryとすると、
4
4
 
5
5
 
6
+
7
+ //src build.gradle
6
8
 
7
9
  ```java
8
10
 
@@ -18,7 +20,131 @@
18
20
 
19
21
  ```
20
22
 
23
+ ```java
24
+
25
+ apply plugin: 'com.android.application'
26
+
27
+
28
+
29
+ android {
30
+
31
+ compileSdkVersion 15
32
+
33
+ buildToolsVersion "25.0.2"
34
+
35
+ defaultConfig {
36
+
37
+ applicationId "com.example.android.sample.myapplication"
38
+
39
+ minSdkVersion 15
40
+
41
+ targetSdkVersion 25
42
+
43
+ versionCode 1
44
+
45
+ versionName "1.0"
46
+
47
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
48
+
49
+ }
50
+
51
+ buildTypes {
52
+
53
+ release {
54
+
55
+ minifyEnabled false
56
+
57
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
58
+
59
+ }
60
+
61
+ }
62
+
63
+ }
64
+
65
+
66
+
67
+ dependencies {
68
+
69
+ compile fileTree(include: ['*.jar'], dir: 'libs')
70
+
71
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
72
+
73
+ exclude group: 'com.android.support', module: 'support-annotations'
74
+
75
+ })
76
+
77
+ compile 'com.android.support:appcompat-v7:25.3.0'
78
+
79
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
80
+
81
+ testCompile 'junit:junit:4.12'
82
+
83
+ }
84
+
85
+
86
+
87
+ ```
88
+
89
+
90
+
91
+ //build.gradle
92
+
93
+ ```java
94
+
95
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
96
+
97
+
98
+
99
+ buildscript {
100
+
101
+ repositories {
102
+
103
+ jcenter()
104
+
105
+ }
106
+
107
+ dependencies {
108
+
109
+ classpath 'com.android.tools.build:gradle:2.3.0'
110
+
111
+
112
+
113
+ // NOTE: Do not place your application dependencies here; they belong
114
+
115
+ // in the individual module build.gradle files
116
+
117
+ }
118
+
119
+ }
120
+
121
+
122
+
123
+ allprojects {
124
+
125
+ repositories {
126
+
127
+ jcenter()
128
+
129
+ }
130
+
131
+ }
132
+
133
+
134
+
135
+ task clean(type: Delete) {
136
+
137
+ delete rootProject.buildDir
138
+
139
+ }
140
+
141
+
142
+
143
+ ```
144
+
145
+
146
+
21
- このようなエラーがたくさん出ます。
147
+ このようなエラー出ます。
22
148
 
23
149
  なぜなのでしょうか?
24
150