Android Studio Kotlin编译器警告

Sta*_*dar 10 kotlin android-studio

我在Kotlin Compiler设置中发现了警告

以下模块覆盖项目设置:app

在此输入图像描述

项目编制和工作完善,但这个警告可以在未来产生影响吗?以及如何解决这个问题.

提前致谢.

Die*_*one 3

打开ProjectFolder/app/app.iml并编辑以下节点,更改useProjectSettings为 true。

<facet type="kotlin-language" name="Kotlin">
  <configuration version="3" platform="JVM 1.6" useProjectSettings="true">
    <compilerSettings />
    <compilerArguments>
      <option name="destination" value="$MODULE_DIR$/build/tmp/kotlin-classes/debug" />
      <option name="noStdlib" value="true" />
      <option name="noReflect" value="true" />
      <option name="moduleName" value="app_debug" />
      <option name="addCompilerBuiltIns" value="true" />
      <option name="loadBuiltInsFromDependencies" value="true" />
      <option name="languageVersion" value="1.2" />
      <option name="apiVersion" value="1.2" />
      ...
    </compilerArguments>
  </configuration>
</facet>
Run Code Online (Sandbox Code Playgroud)

  • 如何保存这个配置呢?每次重建后都会重写。 (2认同)