teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

q

2018/06/24 10:26

投稿

syyyow
syyyow

スコア28

title CHANGED
File without changes
body CHANGED
@@ -8,8 +8,10 @@
8
8
  コードはこちらです
9
9
 
10
10
 
11
- ```error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found.
12
- 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)}```
11
+ ```
12
+ error: style attribute 'attr/colorBackground (aka jp.aftech.myapplication:attr/colorBackground)' not found.
13
+ 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)}
14
+ ```
13
15
 
14
16
 
15
17
  写真も確認お願いいたします

1

build.gradleを追記

2018/06/24 10:26

投稿

syyyow
syyyow

スコア28

title CHANGED
File without changes
body CHANGED
@@ -14,4 +14,44 @@
14
14
 
15
15
  写真も確認お願いいたします
16
16
 
17
- ![イメージ説明](dc56b8951e1aee97c281120b4db6bcf3.png)
17
+ ![イメージ説明](dc56b8951e1aee97c281120b4db6bcf3.png)
18
+
19
+
20
+
21
+
22
+ ```
23
+ java
24
+
25
+ 【build.gradle】
26
+
27
+
28
+ apply plugin: 'com.android.application'
29
+
30
+ android {
31
+ compileSdkVersion 27
32
+ defaultConfig {
33
+ applicationId "jp.-----.myapplication"
34
+ minSdkVersion 21
35
+ targetSdkVersion 27
36
+ versionCode 1
37
+ versionName "1.0"
38
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
39
+ }
40
+ buildTypes {
41
+ release {
42
+ minifyEnabled false
43
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
44
+ }
45
+ }
46
+ }
47
+
48
+ dependencies {
49
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
50
+ implementation 'com.android.support:appcompat-v7:27.1.1'
51
+ implementation 'com.android.support:design:27.1.1'
52
+ implementation 'com.android.support.constraint:constraint-layout:1.1.2'
53
+ testImplementation 'junit:junit:4.12'
54
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
55
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
56
+ }
57
+ ```