change_app_package_name
change_app_package_name copied to clipboard
issue with kotlin and certain TLD domains
Problem
Kotlin treats is
, in
, and as
as keywords.
This is a problem since these conflict with the top level domains for Iceland🇮🇸, India🇮🇳 and American Samoa🇦🇸 respectively.
Currently, the build just fails with:
MainActivity.kt: (1, 9): Package name must be a '.'-separated identifier list
Fix
It's neccessary to provide this part of the package name as a string:
package is.example.app
-> package `is`.example app
great package! Saved me a lot of time today. Thanks :)