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

質問編集履歴

1

更新

2017/07/20 14:41

投稿

riroholll
riroholll

スコア57

title CHANGED
File without changes
body CHANGED
@@ -45,4 +45,73 @@
45
45
 
46
46
  というエラー出ます
47
47
  どのように直すとMPAndroidChartの構築ができるのでしょうか?
48
- 回答お願いします
48
+ 回答お願いします
49
+
50
+ app
51
+
52
+ ```ここに言語を入力
53
+ apply plugin: 'com.android.application'
54
+
55
+ android {
56
+ compileSdkVersion 25
57
+ buildToolsVersion "25.0.3"
58
+ defaultConfig {
59
+ applicationId "com.example.askad.tesut"
60
+ minSdkVersion 15
61
+ targetSdkVersion 25
62
+ versionCode 1
63
+ versionName "1.0"
64
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
65
+ }
66
+ buildTypes {
67
+ release {
68
+ minifyEnabled false
69
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
70
+ }
71
+ }
72
+ }
73
+
74
+ dependencies {
75
+ compile fileTree(dir: 'libs', include: ['*.jar'])
76
+ androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
77
+ exclude group: 'com.android.support', module: 'support-annotations'
78
+ })
79
+ compile 'com.android.support:appcompat-v7:25.3.1'
80
+ compile 'com.android.support.constraint:constraint-layout:1.0.2'
81
+ testCompile 'junit:junit:4.12'
82
+ }
83
+
84
+ ```
85
+ Project
86
+ ```ここに言語を入力
87
+ // Top-level build file where you can add configuration options common to all sub-projects/modules.
88
+
89
+ buildscript {
90
+ repositories {
91
+ jcenter()
92
+ }
93
+ dependencies {
94
+ classpath 'com.android.tools.build:gradle:2.3.2'
95
+ // NOTE: Do not place your application dependencies here; they belong
96
+ // in the individual module build.gradle files
97
+ }
98
+ }
99
+
100
+ allprojects {
101
+ repositories {
102
+ jcenter()
103
+ }
104
+ }
105
+
106
+ task clean(type: Delete) {
107
+ delete rootProject.buildDir
108
+ }
109
+ allprojects {
110
+ repositories {
111
+ maven { url "https://jitpack.io" }
112
+ }
113
+ }
114
+ dependencies {
115
+ compile 'com.github.PhilJay:MPAndroidChart:v2.3.2'
116
+ }
117
+ ```