相关疑难解决方法(0)

Android .idea/misc.xml的languageLevel标记不断更改JDK

由于我不知道的原因,languageLevel键从JDK_1_8更改为JDK_1_7.

会发生什么事?

这是否与其他从事该项目的开发人员的IDE有关?也许他们有另一个Android Studio设置?

这是在我注意到源代码管理下的文件发生了变化后弹出的内容:

$ git diff
diff --git a/.idea/misc.xml b/.idea/misc.xml
index fbb6828..5d19981 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -37,7 +37,7 @@
     <ConfirmationsSetting value="0" id="Add" />
     <ConfirmationsSetting value="0" id="Remove" />
   </component>
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/build/classes" />
   </component>
   <component name="ProjectType">
Run Code Online (Sandbox Code Playgroud)

如果重要的话,这是我的gitignore.

.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
Run Code Online (Sandbox Code Playgroud)

我该如何进行以便它只是保持这种或那种方式?

java android android-studio

175
推荐指数
4
解决办法
2万
查看次数

标签 统计

android ×1

android-studio ×1

java ×1