提问人:Jeevan Rupacha 提问时间:12/9/2022 最后编辑:Jeevan Rupacha 更新时间:12/9/2022 访问量:213
如何删除警告:未知枚举常量 ISO。Android Studio 中DATE_TIME警告?
How to remove warning: unknown enum constant ISO.DATE_TIME warning in android studio?
问:
有两个警告:-
warning: unknown enum constant ISO.DATE_TIME
reason: class file for org.springframework.format.annotation.DateTimeFormat$ISO not found
One or more classes has class file version >= 56 which is not officially supported.
Gradle 文件是:-
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-android'
id 'kotlin-parcelize'
id 'com.google.dagger.hilt.android'
id 'kotlin-kapt'
}
def oktaProperties = new Properties()
rootProject.file("okta.properties").withInputStream { oktaProperties.load(it) }
android {
compileSdk 33
defaultConfig {
applicationId ""
minSdk 21
targetSdk 33
versionCode 1
versionName "1.0"
multiDexEnabled = true
...
}
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += [
'-opt-in=kotlin.RequiresOptIn',
]
}
}
kotlinOptions {
jvmTarget = '11'
}
buildFeatures {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
}
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}
dependencies {
implementation files('libs/abc-models.jar')
implementation files('libs/abc-models.jar')
...
我认为它来自我导入的文件。我也尝试了不同的方法,但它不起作用。.jar
Java Versions
答: 暂无答案
评论