How to fix “static methods in interface require -target:jvm-1.8” in Scala application?
问题 I wrote the following code: import software.amazon.awssdk.services.cloudwatchlogs.CloudWatchLogsClient class Test() extends CloudWatchLogsClient { CloudWatchLogsClient.builder().build() def close():Unit = { println("test") } def serviceName(): String = "serviceName" CloudWatchLogsClient.create() } When it comes to compiling , I get the following error: Static methods in interface require -target:jvm-1.8 CloudWatchLogsClient.builder().build() Finally, I used the following dependencies in my