我有一个String列表,没有regex方面的技能。所以我需要你的帮助。
第一串:
[begin]
65. This tutorial walks you through a series of exercises to get familiar with Kotlin.
66. Kotlin Koans are a series of exercises to get you familiar with the Kotlin Syntax.
67. Each exercise is created as a failing unit test and your job is to make
//This is simple Hello world example in Kotlin (using intellij IDEA)
class Main {
fun main (args: Array<String>){
println("sss")
}
}
我希望打印msg,而不是收到警告。
警告:(5,15) Kotlin:参数'args‘从未使用过
我目前正在尝试用IntelliJ IDEA运行一个简单的Kotlin程序。当我从这个页面运行Hello World示例时,我得到了这个错误和这个警告:
Warning:Kotlin: Classpath entry points to a non-existent location: C:\Program Files (x86)\JetBrains\IntelliJ IDEA 2016.3.3\plugins\Kotlin\kotlinc\lib\kotlin-runtime.jar
Warning:Kotlin: Classpath entry points to a non-existen
我已经将我的项目Dagger版本从2.29.1升级到了2.44,但是升级之后我无法编译代码。
这是我正在犯的错误:
e: org.jetbrains.kotlin.util.KotlinFrontEndException: Front-end Internal error: Failed to analyze declaration SomeExtnContractImpl
File being compiled: (97,1) in FILE_NAME.kt
The root cause org.jetbrains.kotlin.com.intellij.openapi.util.io.Fi
在我的Android项目中打开和编辑来自Kotlin插件的文件时,我经常会遇到异常。有一份通知说
IDE错误
当我点击它时,它会带我到"IDE致命错误“报告工具,其中写着:
Studio内核中的异常
错误消息如下:
Kotlin resolution encountered a problem while analyzing KtCallExpression
org.jetbrains.kotlin.idea.caches.resolve.KotlinIdeaResolutionException: Kotlin resolution encountered a pro
今天我尝试使用intellij,这是几个星期以来的第一次。它告诉我在snap中有更新。还有一个编译错误(但这可能是我的错误,也可能不是我的错误)。
我试过更新,但没有运气。这是我尝试过的。
#↳ sudo snap refresh
All snaps up to date.
#↳ snap list
Name Version Rev Tracking Publisher Notes
core 9993 latest canonical✓ broken
core18
我已经将现有的Maven项目导入到IntelliJ IDEA 2021.2中。Maven项目使用Kotlin版本1.5.21。但是,我收到警告,Maven中的版本与IntelliJ插件的版本不兼容,该版本为1.5.10,是最新的可用版本。在最新版本的IDEA中有使用Kotlin 1.5.21的方法吗?
与:How to include provided dependencies with the new Application Run configuration UI in IntelliJ IDEA?相同的问题,但对于Kotlin配置:是否可以将提供的依赖项添加到Kotlin配置?我通常可以从Java运行配置中运行Kotlin代码来解决问题,但这相当麻烦。
许多教程提到了一个类-- PsiClass,但是我在我的项目中找不到这个类。我的build.gradle如下:
plugins {
id 'java'
id 'org.jetbrains.intellij' version '0.4.16'
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
id 'idea'
}
apply plugin: "org.jetbrains.intellij"
app
我试图遵循Android的,但是当我创建我的项目时,我会得到以下错误:
class org.jetbrains.kotlin.idea.core.script.configuration.CompositeScriptConfigurationManager cannot be cast to class org.jetbrains.kotlin.idea.core.script.ScriptConfigurationManager (org.jetbrains.kotlin.idea.core.script.configuration.CompositeScriptConfiguration