I faced a problem with AS Canary 14 - IDE doesn’t see
collections in the Kotlin stlib jar.
Found these two issues (
first and
second) in the bug tracker and
the question on SO that seem to be relevant to the problem.
I thought the cause is in the Gradle plugin with version
7.0.0-alpha14
and Gradle with version
7.0.0
, so I decided to install Canary 13 to downgrade versions. Canary 14 doesn’t work with versions lower than
7+
as I understand.
I did it on mac:
• Deleted
Android Studio <http://Preview.app|Preview.app>
from
Applications
.
• Deleted
AndroidStudioPreview2020.3
(or similar to that) from
$User/Library/Application Support/Google
.
◦ Press `cmd+shift+.`(
the last one is a dot) to show hidden folders and files in Finder because
Library
is hidden.
• Download Canary 13 and copy it in
Applications
.
I’m not sure if all steps are required but it worked for me.
Canary 13 uses Gradle plugin with version
7.0.0-alpha13
and Gradle with version
6.8.2
(not sure about exact version but it’s definitely lower than
7+
). So it works for me - the problem was solved. After that I try to update Gradle plugin to
7.0.0-alpha14
and Gradle to
7.0.0
and.. it also works. I put Canary 14 to the ignore list to avoid update notification.
Just want to share this info in case it helps someone.