在build.gradle添加
allprojects { repositories { flatDir { dirs 'libs' //this way we can find the .aar file in libs folder } jcenter() } }在app.gradle添加
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.2.1' compile(name: 'slidingmenu_library-release', ext: 'aar') }