http://m.blog.naver.com/beodeulpiri/220737193210를 참조하면서 따라했는데 작동이 안됩니다.
뭐가 잘못된걸까요
build.gradle (project: graphpractice)에서
allprojects {
repositories {
jcenter()
maven { url "https://jitpack.io" }
}
}
이렇게 작성했습니다.
또,
build.gradle (Module: app)에서
dependencies
안에
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
를 추가했습니다.
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart"
android:layout_width="match_parent"
android:layout_height="300dp" />
이부분은 잘 작동하는 것 같습니다. (에뮬레이터 실행하면 no chart data available이라고 뜹니다)
그런데
MainActivity에서
LineChart라는 클래스를 불러오려 하면.. 빨간색으로 표시가 됩니다. (클래스 없다는 그 표시 있잖아요..)
제가 잘못한건가요?