|
|
@@ -111,8 +111,7 @@ android {
|
|
|
|
|
|
compileOptions {
|
|
|
// Flag to enable support for the new language APIs
|
|
|
- // 开启后rhino1.4.1会报错,rhino1.4.1已经脱糖处理
|
|
|
- coreLibraryDesugaringEnabled false
|
|
|
+ coreLibraryDesugaringEnabled true
|
|
|
// Sets Java compatibility to Java 11
|
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
|
@@ -135,8 +134,8 @@ android {
|
|
|
|
|
|
dependencies {
|
|
|
compileOnly "com.android.tools.build:gradle:$agp_version"
|
|
|
- //noinspection GradleDependency,GradlePackageUpdate,脱糖库和rhino冲突,rhino1.4.1已经脱糖处理
|
|
|
- //coreLibraryDesugaring('com.android.tools:desugar_jdk_libs_nio:2.0.2')
|
|
|
+ //noinspection GradleDependency,GradlePackageUpdate
|
|
|
+ coreLibraryDesugaring('com.android.tools:desugar_jdk_libs_nio:2.0.2')
|
|
|
testImplementation('junit:junit:4.13.2')
|
|
|
androidTestImplementation('androidx.test:runner:1.5.2')
|
|
|
androidTestImplementation('androidx.test.ext:junit:1.1.5')
|