When you create an empty activity Android project using Kotlin in Android Studio, you might get this error at the beginning during the build.
To fix this, we go to build.gradle
file. It should be of project type. Remember, there are two files with the same name.

At the top, you see the following code.

Just delete the -release-764
and keep only 1.5.0
.

Finally, click on Try Again. It will restart the build.

This time, the build will be successfull.

Thank you All!!! Hope you find this useful.
If you liked our content and it was helpful, you can buy us a coffee or a pizza. Thank you so much.

You must be logged in to post a comment.