Had a crash while trying to use the new TextInputField for Android and wanted to share my solution.
TextInputField
Trying the new TextInputField in the android appcomp
I had the same issue with Android Studio 3.0.1
All you need to add the following line into gradle.properties (Project Propeties):
android.enableAapt2=false