When you add @Override to a method, if
method does not override method from superclass
appears. It means IDE can't find the method with same signature in its super class.
From my view, I guess you didn't add the library which contains AppCompatActivity
properly. Please have it examined.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.