Method doesn't override method from its superclass AppCompatActivity

644 Views Asked by At

I am new to Android. I am facing a issue of getting a error called

"Method doesn't override method from its superclass".

Code is as follows.

package com.example.sampleapp;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    private Bundle savedInstanceState;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        this.savedInstanceState = savedInstanceState;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}

Please help me to fix this.

0

There are 0 best solutions below