help debugging a basic app in android studio
Hey guys. Uber noob to programming but have started trying to make a really basic app using a tutorial (https://developer.android.com/training/basics/firstapp/starting-activity.html) but I've run into a few road blocks. I've tried making this app twice and failed miserably lol. One issue is that the line `import android.view.ViewGroup;' keeps disappearing from the code as soon as its entered. The second issue is that the app crashes as soon as it starts. I had the first activity working initially but the app would crash when the button was clicked. I've triad clean/rebuild but it hasn't helped at all. I've also tried other basic info I could like editing or removing certain parts of the code but they didn't help either. I tried posting in Stack Overflow but even that wouldn't help :/ So at this stage any and all help would be great;y appreciated! Thanks in advance! Logcat error info 06-14 20:56:40.335 25791-25791/com.example.jacqueline.myfirstapp E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.jacqueline.myfirstapp, PID: 25791 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.jacqueline.myfirstapp/com.example.jacqueline.myfirstapp.MainActivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity. at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2711) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2772) at android.app.ActivityThread.-wrap12(ActivityThread.java)