El enlace bidireccional de Android con el tipo Integer hace que el enlace de datos no exista

Tengo problemas para implementar el enlace bidireccional con un tipo de datos Integer.

public class User {

    private String firstName;
    private String lastName;
    private int age;

    public User() {}

    public void setFirstName(String firstName) {
       this.firstName = firstName;
    }

    public String getFirstName() {
       return this.firstName;
    }

    public void setLastName(String lastName) {
       this.lastName = lastName;
    }

    public String getLastName() {
       return this.lastName;
    }

    public void setAge(int age) {
       this.age = age;
    }

    public int getAge() {
       return this.age;
    }

}

XML:

<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android">

    <data class="UserDataBinding">
        <variable
            name="user"
            type="com.databinding.model.User" />
    </data>

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            android:padding="@dimen/activity_horizontal_margin">

       <EditText android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@={user.firstName}" />

       <EditText android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@={user.lastName}" />

       <EditText android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@={user.age}" />

    </LinearLayout>
</layout>

Lamentablemente, me da el error

"Error: (52, 17) No se puede encontrar el captador para el atributo 'android: text' con el tipo de valor java.lang.Integer en android.support.design.widget.TextInputEditText".

Si cambio el texto del atributo a

       <EditText android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@={Integer.toString(user.age)}" />

entonces me sale el error

"Error: no se pueden generar carpetas de vistas java.lang.NullPointerException"

Agradezco cualquier ayuda en esto.

ACTUALIZACIÓN: Parece que hubo otro error justo después del error mencionado anteriormente.

no se pueden generar carpetas de vistas java.lang.NullPointerException

No estoy seguro de por qué me está dando NPE a pesar de que la aplicación aún no ha comenzado.

Respuestas a la pregunta(7)

Su respuesta a la pregunta