I am very new to Kotlin and I am creating a new project that supports Kotlin in Android Studio 3.0 canary.
This project is having two issues.
What should I do now?
Thanks in advance.
Solution of This error: Go to the Kotlin Gradle Plugin version checkup page, and get the latest version from the page. The latest version we get is "1.6. 21", now you have to update the version code at build. gradle located at android\build.
If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.
I assume you are using one of Kotlin keywords in your package name.
To fix compilation error just surround the Keywords like in
,as
,is
with Grave accent ( ` ). E.g.
`is`.package.name,
`in`.company.app
Hope, it'll help you.
This happens when you use a domain name with ".in" or any 2 character TLD in domain name while creating the project. This should be resolved if you create with a 3 character TLD domain name. Otherwise you can use as in_.xyz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With