I get errors in new Android Studio project in Kotlin connected with attributes: \'Attribute android:x is not allowed here\"
file: activity_main.xml
In your root element, replace:
xmlns:android="http://www.w3.org/1999/XSL/Transform"
with:
xmlns:android="http://schemas.android.com/apk/res/android"
Also, remove xmlns="http://schemas.android.com/apk/res/android" from your root element.
xmlns="http://schemas.android.com/apk/res/android"