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

質問編集履歴

1

gradleファイルの追加

2017/03/22 04:02

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -46,7 +46,40 @@
46
46
  }
47
47
  }
48
48
 
49
+ ```
50
+ ```
51
+ apply plugin: 'com.android.application'
49
52
 
53
+ android {
54
+ compileSdkVersion 25
55
+ buildToolsVersion "25.0.2"
56
+ defaultConfig {
57
+ applicationId "com.example.sampleapplication"
58
+ minSdkVersion 16
59
+ targetSdkVersion 25
60
+ versionCode 1
61
+ versionName "1.0"
62
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
63
+ }
64
+ buildTypes {
65
+ release {
66
+ minifyEnabled false
67
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
68
+ }
69
+ }
70
+ }
71
+
72
+ dependencies {
73
+ compile fileTree(dir: 'libs', include: ['*.jar'])
74
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
75
+ exclude group: 'com.android.support', module: 'support-annotations'
76
+ })
77
+ compile 'com.android.support:appcompat-v7:25.3.0'
78
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
79
+ testCompile 'junit:junit:4.12'
80
+ compile 'com.android.support:customtabs:23.3.0'
81
+ }
82
+
50
83
  ```
51
84
 
52
85
  上記のコードでこのようなエラーが発生しています。