matrix
matrix copied to clipboard
Android demo 编译报错
/Users/zhanglei03/D/github/matrix/samples/sample-android/app/src/main/java/sample/tencent/matrix/battery/BatteryCanaryInitHelper.java:48: 错误: 找不到符号 import com.tencent.mmkv.MMKV; ^ 符号: 类 MMKV 位置: 程序包 com.tencent.mmkv
在libkt build 里添加以下依赖:
api group: "com.tencent.matrix", name: "matrix-android-lib", version: MATRIX_VERSION, changing: true
1
libkt加上以下依赖即可:
implementation group: "com.tencent.matrix", name: "matrix-android-lib", version: MATRIX_VERSION, changing: true
implementation group: "com.tencent.matrix", name: "matrix-android-commons", version: MATRIX_VERSION, changing: true
api 'com.tencent:mmkv:1.2.13'
api 'com.tencent:mmkv:1.2.13'
app的build.gradle里面,添加 dependencies { api 'com.tencent:mmkv:1.2.13' }