修改文档

pull/34/head
jason 6 years ago
parent 2d2fd8bd9b
commit 5cf3af79aa
  1. 14
      README.md
  2. 10
      app/build.gradle

@ -24,6 +24,20 @@
}
```
- 扫描时报如下错误
```
java.lang.NullPointerException: Attempt to invoke virtual method 'com.zwy.nsfw.api.NsfwBean com.zwy.nsfw.Classifier.run(android.graphics.Bitmap)' on a null object reference
```
__请添加__
```
android {
...
aaptOptions {
noCompress "tflite"
}
}
```
- Code like this

@ -27,12 +27,6 @@ android {
aaptOptions {
noCompress "tflite"
}
// sourceSets {
// main {
// jniLibs.srcDirs = ['libs']
// assets.srcDir("main/assets")
// }
// }
}
dependencies {
@ -48,6 +42,6 @@ dependencies {
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
implementation 'com.github.LuckSiege.PictureSelector:picture_library:v2.2.3'
implementation project(path: ':nsfw')
// implementation 'com.github.devzwy:open_nsfw_android:1.2.4'
// implementation project(path: ':nsfw')
implementation 'com.github.devzwy:open_nsfw_android:1.2.5'
}

Loading…
Cancel
Save