0

I have an issue on Macbook Pro M1 with Big Sur 11.6 and Android Studio Arctic Fox 2020.3.1 Patch 2. I have my working project - everything working fine on Windows 10 machine, but when I move to Mac OS Big Sur on M1 machine it shows me such an errors all over my files with Java code: required java.lang.String found String or required java.util.Calendar found Calendar (I will attach screenshots). But the project itself starts without errors and it's working. It just underlines everything with red lines.

I had installed JDK: 11 and set JAVA_HOME variable for it. I thought that maby it's the reason why it behaves like this. I have uninstalled al JDK from MacOS, but it didn't succeed. Yes, I did "Invalidate Caches and restart" thousands times. I have tried to completely reinstall Android Studio and use just it's build in JDK 11, but all of that has no effect. I have tried to install JDK 1.8 - also nothing. I just don't know what else to do except reinstall OS from scratch and try again.

I have tried this guide to remove JDKs from mac: https://explainjava.com/uninstall-java-macos/?fbclid=IwAR1ooOwe5-1r7AXsN1zGnHnLwfNZnEYyjs5w1g7V2mSJsXo4lbuFiN908Bg

And this guide to install JDK and set JAVA_HOME variable on Big Sur: Wrong JAVA_HOME after upgrade to macOS Big Sur v11.0.1

More details on AS:

Android Studio Arctic Fox | 2020.3.1 Patch 2
Build #AI-203.7717.56.2031.7678000, built on August 27, 2021
Runtime version: 11.0.10+0-b96-7249189 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Registry: ide.instant.shutdown=false, external.system.auto.import.disabled=true

enter image description here

enter image description here

enter image description here

enter image description here

yozhik
  • 4,034
  • 13
  • 58
  • 95
  • I tried to install the latest preview version: https://developer.android.com/studio/preview and it's working from the box. But it uses JDK 11.0.11 bundled in itself. And Android Arctic fox is working with JDK 11.0.10. If it plays ro.e. – yozhik Oct 05 '21 at 22:17

0 Answers0