buildscript { ext { androidId = [ compileSdkVersion: 32, minSdkVersion : 26, targetSdkVersion : 32, versionCode : 1, versionName : "0.0.1" ] url = [ server_url : "http://192.168.3.144:8088", //http 请求指令 server_url_online: "https://mgr.hjx.com", //http 请求指令 ] dependencies = [ appcompat : 'androidx.appcompat:appcompat:1.0.0', constraint : 'androidx.constraintlayout:constraintlayout:1.1.3', cardview : 'androidx.cardview:cardview:1.0.0', recyclerview : 'androidx.recyclerview:recyclerview:1.0.0', material : 'com.google.android.material:material:1.0.0', // 依赖RxAndroid 2X 的依赖库 // 增加RxJava 2X 的依赖库 rxandroid : 'io.reactivex.rxjava2:rxandroid:2.0.1', rxjava : 'io.reactivex.rxjava2:rxjava:2.0.7', // 以下需要使用Retrofit //retrofit retrofit : 'com.squareup.retrofit2:retrofit:2.1.0', //Gson converter converter : 'com.squareup.retrofit2:converter-gson:2.1.0', //RxJava2 Adapter retrofit2 : 'com.jakewharton.retrofit:retrofit2-rxjava2-adapter:1.0.0', //okhttp okhttp : 'com.squareup.okhttp3:okhttp:3.8.1', logging : 'com.squareup.okhttp3:logging-interceptor:3.4.1', utils : 'com.github.wang-developer:AndroidUtilsDemo:1.0.6', commons_lang : 'org.apache.commons:commons-lang3:3.7', commons_compress: 'org.apache.commons:commons-compress:1.19', commons_c_lang : 'commons-lang:commons-lang:2.3', commons_codec : 'commons-codec:commons-codec:1.7', eventbus : 'org.greenrobot:eventbus:3.2.0', eventbus2 : 'org.simple:androideventbus:1.0.5.1', glide : 'com.github.bumptech.glide:glide:4.6.1', permissions : 'com.github.getActivity:XXPermissions:11.6', orcode : 'cn.yipianfengye.android:zxing-library:2.2' // push : 'com.umeng.sdk:push:4.1.0', // litepal : 'org.litepal.android:java:3.0.0', // AlivcFFmpeg : 'com.aliyun.video.android:AlivcFFmpeg:2.0.0', // // basequickadapter : 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.34', // SwipeDelMenuLayout: 'com.github.mcxtzhang:SwipeDelMenuLayout:V1.3.0', // flycoTabLayout : 'com.flyco.tablayout:FlycoTabLayout_Lib:2.1.2@aar' ] } repositories { maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } maven { url 'https://maven.aliyun.com/repository/google' } maven { url 'https://maven.aliyun.com/repository/central' } google() maven { url 'https://maven.aliyun.com/repository/jcenter' } } dependencies { classpath 'com.android.tools.build:gradle:4.2.2' classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' classpath 'com.jakewharton:butterknife-gradle-plugin:10.2.3' classpath "com.alibaba:arouter-register:1.0.2" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' } maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' } maven { url 'https://jitpack.io' } google() maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' } } } task clean(type: Delete) { delete rootProject.buildDir }