优化细节

This commit is contained in:
Jenly
2023-03-06 23:27:43 +08:00
parent 13ef5c70c1
commit 0abe6e8bfe
5 changed files with 30 additions and 1 deletions

View File

@@ -349,6 +349,25 @@ compileOptions {
```
> 当使用的ZXingLite为 **v2.3.x** 以上版本时即更新zxing至v3.5.1后如果要兼容Android 7.0N以下版本minSdk<24需通过脱糖获得 Java 8 及更高版本 API。
```gradle
compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
// Sets Java compatibility to Java 8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
```
```gradle
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
}
```
更多使用详情,请查看[app](app)中的源码使用示例或直接查看[API帮助文档](https://jenly1314.github.io/projects/ZXingLite/doc/)
### 相关推荐