在项目上,我正在工作,但出现以下错误,并且我不知道如何在Android Studio上从JRE更改为JDK。
.gradle\caches\modules-2\files-2.1\org.jetbrains.kotlin\kotlin-stdlib-jre8\1.2.20\f77d7863695e17041b50ebe5e2f87e5314a2c812\kotlin-stdlib-jre8-1.2.20.jar: kotlin-stdlib-jre8 is deprecated. Please use kotlin-stdlib-jdk8 instead
Just change the dependency from
implementation'org.jetbrains.kotlin:kotlin-stdlib-jre8:1.2.61'
to
implementation'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.2.61'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.