gpt4 book ai didi

android-studio - Android Studio Kotlin 编译器警告

转载 作者:IT老高 更新时间:2023-10-28 13:38:59 29 4
gpt4 key购买 nike

我在 Kotlin 编译器设置中发现警告

Following modules override project settings: app

enter image description here

项目编译并运行完美,但此警告会在未来产生影响吗?以及如何解决这个问题。

提前致谢。

最佳答案

打开 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>

关于android-studio - Android Studio Kotlin 编译器警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46054600/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com