質問編集履歴
2
q
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,9 +18,13 @@
|
|
18
18
|
|
19
19
|
|
20
20
|
|
21
|
-
```
|
21
|
+
```
|
22
22
|
|
23
|
-
|
23
|
+
error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found.
|
24
|
+
|
25
|
+
Message{kind=ERROR, text=error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found., sources=[/Users/shoichi/.gradle/caches/transforms-1/files-1.1/appcompat-v7-27.1.1.aar/2d3e2ed35fddb328f4a6d0df363c67ad/res/values/values.xml], original message=, tool name=Optional.of(AAPT)}
|
26
|
+
|
27
|
+
```
|
24
28
|
|
25
29
|
|
26
30
|
|
1
build.gradleを追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,3 +31,83 @@
|
|
31
31
|
|
32
32
|
|
33
33
|
![イメージ説明](dc56b8951e1aee97c281120b4db6bcf3.png)
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
```
|
44
|
+
|
45
|
+
java
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
【build.gradle】
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
apply plugin: 'com.android.application'
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
android {
|
60
|
+
|
61
|
+
compileSdkVersion 27
|
62
|
+
|
63
|
+
defaultConfig {
|
64
|
+
|
65
|
+
applicationId "jp.-----.myapplication"
|
66
|
+
|
67
|
+
minSdkVersion 21
|
68
|
+
|
69
|
+
targetSdkVersion 27
|
70
|
+
|
71
|
+
versionCode 1
|
72
|
+
|
73
|
+
versionName "1.0"
|
74
|
+
|
75
|
+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
76
|
+
|
77
|
+
}
|
78
|
+
|
79
|
+
buildTypes {
|
80
|
+
|
81
|
+
release {
|
82
|
+
|
83
|
+
minifyEnabled false
|
84
|
+
|
85
|
+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
86
|
+
|
87
|
+
}
|
88
|
+
|
89
|
+
}
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
dependencies {
|
96
|
+
|
97
|
+
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
98
|
+
|
99
|
+
implementation 'com.android.support:appcompat-v7:27.1.1'
|
100
|
+
|
101
|
+
implementation 'com.android.support:design:27.1.1'
|
102
|
+
|
103
|
+
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
|
104
|
+
|
105
|
+
testImplementation 'junit:junit:4.12'
|
106
|
+
|
107
|
+
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
108
|
+
|
109
|
+
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
110
|
+
|
111
|
+
}
|
112
|
+
|
113
|
+
```
|