Workaround For Gradle Errors

Hey folks, I’m one of the Tech Editors. We’ve had some people getting this pop-up when trying to open existing projects:

21%20AM

This is because newer versions of Gradle and Kotlin have come out since the book was published. If you hit Update, on the next Gradle build, you’ll see this error:

09%20AM

In order to get it to build, update the project’s build.gradle file to use the Kotlin plugin version mentioned in the error:

35%20AM

Please let us know if you have more questions! Thank you!

Edited to add: While the examples here show the project from Chapter 2, this applies to all projects until the update we have in the works is out.

@designatednerd Thank you for sharing all this - much appreciated! :]