Android Studio Kotlin编译器警告 [英] Android Studio Kotlin Compiler warning
本文介绍了Android Studio Kotlin编译器警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Kotlin编译器设置中发现警告
I found warning in Kotlin Compiler settings
以下模块将覆盖项目设置:应用
项目可以编译并完美运行,但是此警告将来会产生影响吗?以及如何解决这个问题.
Project compiles and works perfect but can this warning make affect in future? And how to solve this.
谢谢.
推荐答案
打开ProjectFolder/app/app.iml
并编辑以下节点,将useProjectSettings
更改为true.
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>
这篇关于Android Studio Kotlin编译器警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文