背景:
引入mmkv报错
implementation 'com.tencent:mmkv:1.2.2'
解决:
implementation 'com.tencent:mmkv:1.2.14'
奇葩啊
参考解决
最外层build.gradle
buildscript {
repositories {
google()
maven {
allowInsecureProtocol = true
url 'https://maven.aliyun.com/nexus/content/groups/public/' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
参考二
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}