intellij-idea

How to set '-Xuse-experimental=kotlin.experimental' in IntelliJ

半腔热情 提交于 2020-12-04 15:58:39
问题 while trying to build a Kotlin/Ktor application in IntelliJ, multiple warnings of the form Warning:(276, 6) Kotlin: This class can only be used with the compiler argument '-Xuse-experimental=kotlin.Experimental' are output. The warnings refer to @UseExperimental(KtorExperimentalLocationsAPI::class) so I expected to satisfy the warning by setting Settings -> Build -> Compiler -> Kotlin Compiler -> Additional command line parameters to -version -Xuse-experimental=kotlin.Experimental . (

How to set '-Xuse-experimental=kotlin.experimental' in IntelliJ

时光怂恿深爱的人放手 提交于 2020-12-04 15:58:07
问题 while trying to build a Kotlin/Ktor application in IntelliJ, multiple warnings of the form Warning:(276, 6) Kotlin: This class can only be used with the compiler argument '-Xuse-experimental=kotlin.Experimental' are output. The warnings refer to @UseExperimental(KtorExperimentalLocationsAPI::class) so I expected to satisfy the warning by setting Settings -> Build -> Compiler -> Kotlin Compiler -> Additional command line parameters to -version -Xuse-experimental=kotlin.Experimental . (

Detect IDE environment with Gradle

こ雲淡風輕ζ 提交于 2020-12-03 17:58:14
问题 Is there anyway to detect the environment I'm running my project. Something like this: build.gradle def usingIntelliJ = ... def usingAndroidStudio = ... if (usingIntelliJ) { buildConfigField "String", "IDE_ENV", "IDEA" } else if (usingAndroidStudio) { buildConfigField "String", "IDE_ENV", "AndroidStudio" } 回答1: To determine if your build is triggered by an IDE, the Android build chain will set a specific property: def isIdeBuild() { return project.properties['android.injected.invoked.from.ide

Detect IDE environment with Gradle

你离开我真会死。 提交于 2020-12-03 17:57:11
问题 Is there anyway to detect the environment I'm running my project. Something like this: build.gradle def usingIntelliJ = ... def usingAndroidStudio = ... if (usingIntelliJ) { buildConfigField "String", "IDE_ENV", "IDEA" } else if (usingAndroidStudio) { buildConfigField "String", "IDE_ENV", "AndroidStudio" } 回答1: To determine if your build is triggered by an IDE, the Android build chain will set a specific property: def isIdeBuild() { return project.properties['android.injected.invoked.from.ide

Android Studio 4.1 adb got stuck

二次信任 提交于 2020-12-03 02:47:41
问题 I upgraded my Android Studio to v4.1. But adb commands are doesn't respond. See: Therefore Android Studio Devices status stuck at "Loading Devices". Like this: Does anyone know about this issue? 回答1: I had been dealing with this bug as I stated in the comment section for a while in Android Studio Canary. But it seems like this is a general problem that newer Android Studio versions have. So, these steps would work for most people. Uninstall Android Studio including the user settings. (Don't

Android Studio 4.1 adb got stuck

≯℡__Kan透↙ 提交于 2020-12-03 02:40:50
问题 I upgraded my Android Studio to v4.1. But adb commands are doesn't respond. See: Therefore Android Studio Devices status stuck at "Loading Devices". Like this: Does anyone know about this issue? 回答1: I had been dealing with this bug as I stated in the comment section for a while in Android Studio Canary. But it seems like this is a general problem that newer Android Studio versions have. So, these steps would work for most people. Uninstall Android Studio including the user settings. (Don't

Configuring Groovy SDK within IntelliJ IDEA

删除回忆录丶 提交于 2020-12-02 00:35:14
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

大憨熊 提交于 2020-12-02 00:22:50
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

↘锁芯ラ 提交于 2020-12-02 00:14:09
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ

Configuring Groovy SDK within IntelliJ IDEA

倾然丶 夕夏残阳落幕 提交于 2020-12-02 00:14:00
问题 I am running IntelliJ IDEA 2017.2.3. I installed Groovy 2.4.12 via Homebrew (OS X). When I open a Groovy source file (or a Jenkinsfile ), I get the following: Groovy SDK is not configured for module 'my-module' . . . . . Configure Groovy SDK... Clicking "Configure Groovy SDK..." leads me to the following dialog: I tried hitting "Create..." and selecting many different Groovy-related folders and executables, but nothing works. How can I get IntelliJ IDEA to accept my Groovy SDK? 回答1: IntelliJ