Android(安卓)Studio中添加阿里云Maven仓库镜像
16lz
2021-01-26
不知道公司网最近怎么抽风了,加载依赖的速度奇慢无比,加入阿里云的镜像地址之后就顺畅了很多,其实也比较简单,这里记录下:
buildscript { ext.kotlin_version = '1.3.0' repositories { maven { url "http://maven.aliyun.com/nexus/content/groups/public/" } google() jcenter() } dependencies { classpath 'com.android.tools.build:gradle:3.2.1' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" // 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/groups/public/" } google() jcenter() }}
更多相关文章
- Android之取消ViewPage+Fragment的预加载
- 网页加速之Link prefetching
- Google Search Widget
- OkHttpClient加载图片给DisposableObserver,CompositeDisposable
- Android中Activity布局及其加载
- Android:异步加载网络资源
- Android中使用fresco加载图片
- (4.1.2.5)Android(安卓)屏幕旋转 处理 AsyncTask 和 ProgressDialo
- Android应用程序的入口Activity