Yesterday I updated the Andorid Studio to the latest one:
Android Studio Hedgehog | 2023.1.1
Build #AI-231.9392.1.2311.11076708, built on November 9, 2023
Runtime version: 17.0.7+0-17.0.7b1000.6-10550314 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 14.1.2
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Metal Rendering is ON
Registry:
external.system.auto.import.disabled=true
debugger.new.tool.window.layout=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.experimental.ui=true
Non-Bundled Plugins:
Statistic (4.2.7)
com.jetbrains.kmm (0.8.1(231)-23)
and now I am not ablae to tun any project I could run in the previus version. Here is the filure: Operation is not supported for read-only collection
Just for making sure I also created a test project with the latest versions of:
- Gradle: 8.5
- Android Gradle Plugin Version: 8.2.0
- Jetbrains Kotlin Android: 1.9.20
- Kotlin Compiler Extension Version: 1.5.5
It does not look to me that their is a compability issue. Otherwise the old projects would get compiled. No project can be compiled and all of them show the same result:
What might be the problem?
BTW, I already reported the issue from the Android Studio to Google, but not sure if they will take a look in.
ANy help highly appreciated.
2
Answers
Thnanks to @kaigalmane there is a solution that helped us to solve the issue. Just restore default settings of IDE:
File
->Manage IDE Settings
->Restore Default Settings...
I had the same problem when I updated Android Studio, and I was able to resolve it by unchecking this option in settings :
If that doesn’t work, try to uncheck other experimental options.