I tried to migrate a project from Eclipse to Android studio. Finally I am able to run it, but at a certain point I got this exception, and I found nothing in google about th
Check if you call setContentView() after super.onCreate(), and not before. This helped in my case.
setContentView()
super.onCreate()