This is the java file that is giving the error
package com.example.daksh.timetable; import android.support.v7.app.AppCompatActivity; import
In my case, I made a custom background which was not recognised.
I removed the tag from the top of those two XML resources file.
This worked for me, after trying many solutions from the community. @P Fuster's answer made me try this.