android java gradle的一些库和部分注意事项(持续更新)
allprojects {
repositories {
maven { url 'https://maven.aliyun.com/repository/public/' }
mavenLocal()
mavenCentral()
}
}
添加Circle_view_image:
implementation 'de.hdodenhof:circleimageview:2.1.0'
添加Glide:
implementation 'com.github.bumptech.glide:glide:3.7.0'
添加okHttp:
implementation 'com.squareup.okhttp3:okhttp:3.4.1'
下拉刷新:
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
隐藏toolbar的标题
getSupportActionBar().setDisplayShowTitleEnabled(false);
bmob maven仓库:
allprojects {
repositories {
jcenter()
//Bmob的maven仓库地址--必填
maven {url 'https://dl.bintray.com/chaozhouzhang/maven' }
}
}
android {
useLibrary 'org.apache.http.legacy'
}
dependencies {
implementation 'cn.bmob.android:bmob-sdk:3.7.8'
implementation "io.reactivex.rxjava2:rxjava:2.2.8"
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
implementation 'com.squareup.okhttp3:okhttp:3.14.1'
implementation 'com.squareup.okio:okio:2.2.2'
implementation 'com.google.code.gson:gson:2.8.5'
}
MPAndroidChart:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
compile 'com.github.PhilJay:MPAndroidChart:v3.1.0'
}
Jsoup
implementation group: 'org.jsoup', name: 'jsoup', version: '1.8.3'
circleImageView
'de.hdodenhof:circleimageview:2.1.0'
好的日历控件:https://blog.csdn.net/huanghaibin_dev/article/details/79040147?utm_source=app&app_version=4.5.2
StackLayout(别忘了填仓库):
maven { url 'https://jitpack.io' }
implementation 'com.github.fashare2015:StackLayout:1.0.0'
和风天气(别忘了先添加libs):
implementation files('libs/QWeather_Public_Android_V4.3.jar')
implementation 'com.squareup.okhttp3:okhttp:3.9.0'
implementation 'com.google.code.gson:gson:2.6.2'
使用加密流量:
android:usesCleartextTraffic="true"
Mirai:
plugins:
id("net.mamoe.mirai-console") version "2.3.2"
dependence:
api("net.mamoe", "mirai-core", "2.4.1")