我使用的MPAndroidChart繪製在我的Android應用程序圖。我在做雷達圖,餅圖和線圖。我的問題是雷達圖需要不同版本的這個庫,這對其他兩個地塊不起作用。Android Studio中的build.gradle編譯錯誤
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.2.0'
compile 'com.android.support:support-v4:24.2.0'
compile 'com.github.PhilJay:MPAndroidChart:v3.0.1'
compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'
}
正如你可以看到我的依賴我編譯兩個不同的版本。這會導致錯誤,只有其中一個會起作用,因此雷達圖不會工作,否則其他兩個將不起作用。
有誰知道我可以編譯同一個庫的兩個版本?