1、将第三方开源jar包代码拷入工程文件夹
2、在settings.gradle添加
include ‘:app‘ include ‘:app‘,‘:MPChartLib‘
3、在APP/build.gradle文件添加
dependencies { compile fileTree(dir: ‘libs‘, include: [‘*.jar‘]) compile ‘com.android.support:appcompat-v7:22.1.1‘ compile ‘com.google.android.gms:play-services:7.3.0‘ compile project(‘:MPChartLib‘) }
4、修改调整MPChartLib下 build.gradle,使版本号相同
时间: 2024-10-11 01:46:02