I get errors in new Android Studio project in Kotlin connected with attributes: \'Attribute android:x is not allowed here\"
file: activity_main.xml
Have you tried to rebuild or clean your project? I think you should try that then run the app again
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.
Try syncing project with Gradle files: File
-> Sync project with Gradle files
.