Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Kotlin Compiler warning

I found warning in Kotlin Compiler settings

Following modules override project settings: app

enter image description here

Project compiles and works perfect but can this warning make affect in future? And how to solve this.

Thanks in advance.

like image 854
Stanislav Bondar Avatar asked Sep 05 '17 12:09

Stanislav Bondar


1 Answers

Open ProjectFolder/app/app.iml and edit the following node, changing useProjectSettings to 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>
like image 176
Diego Malone Avatar answered Oct 21 '22 17:10

Diego Malone