记得在app的build.gradle中添加依赖 compile (name:'my-library-release',ext:'aar') android{ repositories { flatDir { dirs 'libs' } } } 用工具类ScanUtil的ScanUtil.startScan(this, new HandleCallBack() {//解析 @Override public void onSu