I have downloaded the MPChartLib library as zip file.I use Android Studio 1.5
Asked
Active
Viewed 2,895 times
3 Answers
3
Gradle dependency (recommended)
Add the following to your project level build.gradle:
allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}
Add this to your app build.gradle:
dependencies {
implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
}
Visit MP Android Chard Usage for more details

Bhavesh Desai
- 753
- 4
- 20
2
Compile this in your build.gradle file-:
compile 'com.github.PhilJay:MPAndroidChart:v2.2.4'
repositories {
maven { url "https://jitpack.io" }
}
Create layout using this-:
<com.github.mikephil.charting.charts.PieChart
android:id="@+id/piechart"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
Use this Link for Further Reference-: https://www.studytutorial.in/android-pie-chart-using-mpandroid-library-tutorial

Shivam Oberoi
- 1,447
- 1
- 9
- 18
-
Depending on the version of Gradle, this may be `implementation` instead of `compile` – Zoe Jan 09 '18 at 08:13
-
That inculdes in Android 3.0 and read the question can install 3.0 so its an alternative.. – Shivam Oberoi Jan 09 '18 at 08:14
1
Just browse what is the content of the ZIP file, if its a jar you can unzip and import it Pressing Ctrl+Alt+Shift+S and selecting the Plus Sign in the Libraries menu

Ankit Chandel
- 69
- 4