Jonathan Star 2023-06-15 22:20 采纳率: 67.5%
浏览 50
已结题

Cannot access built-in declaration 'kotlin.Boolean'

Kotlin: Cannot access built-in declaration 'kotlin.Boolean'. Ensure that you have a dependency on the Kotlin standard library

IntelliJ IDEA 2023.1.2 (Ultimate Edition)
Build #IU-231.9011.34, built on May 16, 2023
Licensed to signup scooter
You have a perpetual fallback license for this version.
Subscription is active until August 1, 2025.
Runtime version: 17.0.6+10-b829.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1024M
Cores: 8
Non-Bundled Plugins:
    com.tyrfing.plugin (1.6.5)
    Pythonid (231.9011.34)
    cn.cloud.auto.restful.tool (1.4.5)

Kotlin: 231-1.8.21-IJ9011.34
  • 写回答

2条回答 默认 最新

  • Jonathan Star 2023-06-16 19:12
    关注
     <dependency>
                <groupId>org.jetbrains.kotlin</groupId>
                <artifactId>kotlin-stdlib-jdk8</artifactId>
    <!--            <version>1.5.0</version>-->
    <!--            <version>1.6.0</version>-->
    <!--            <version>1.6.21</version>-->
    <!--            <version>1.9.0</version>-->
                <version>1.8.0</version>
            </dependency>
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 6月24日
  • 已采纳回答 6月16日
  • 创建了问题 6月15日