I have been trying to solve this problem for a full day now. I created a new project in Android Studio and chose the tab navigation activity. From there I added a simple EditText in the XML of fragment_main.xml and run it. It always gives me an EditText inflation error. This does not happen with any other element e.g. TextViewsI have been trying to solve this problem for a