'How to run migrations on Android Studio?

Sometimes I see a pop-up, that I can migrate to a newer kotlin version or something but I recently accidentally closed it and after restarting Android Studio it doesn't appear again. How can I run that migrations manually? Because, when I download a random project from GitHub I sometimes get compilation errors if something is not updated.



Solution 1:[1]

I was able to make the pop-up appear again, try the following:

  1. Change kotlin_version on your build.gradle to whatever version of Kotlin you were before or want to migrate from.
  2. Sync Project with Gradle files.
  3. Upgrade again to the version you want to migrate to.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 GuiyeC