在我们开发应用的时候,都会用到一些第三方库,设置应用的targetSdkVersion
、compileSdkVersion
,buildToolsVersion
等,一般情况下,我们都是直接在应用的gradle文件中引用库,如下面:
compile project(':FastBleLib')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.jakewharton:butterknife:8.5.1'
compile 'com.android.support:design:26.0.0-alpha1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.kaopiz:kprogresshud:1.0.2'
compile 'org.greenrobot:eventbus:3.0.0'
testCompile 'junit:junit:4.12'
但是这种情况下,有一种弊端&#