Question: I'm in an android programming class and I am trying to add an action bar to my app. The actionbaractivity shown below is underlined in
I'm in an android programming class and I am trying to add an action bar to my app.
The actionbaractivity shown below is underlined in red saying it cannot resolve the symbol. From what I understand I have to add a dependencies in the build.gradle. I imported this project and there does not seem to be one in it. Is there a way for me to add a build.gradle or something similair. Thanks in advance.
import android.support.v7.app.ActionBarActivity; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; public class MainActivity extends ActionBarActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
