Android Studio 3.0
classpath 'com.android.tools.build:gradle:3.0.1'
set
dataBinding {
enabled = true
}
I want to use data binding.
Here my xml layout:
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<data>
<variable
name="offer" type="com.myproject.customer.Offer" />
</data>
</android.support.constraint.ConstraintLayout>
But I get error:
Attribute is missing the Android namespace prefix