FloFlaFli
FloFlaFli

Reputation: 19

My application quits after adding AppCompatActivity

I added

compile 'com.android.support:appcompat-v7:+'

I then add this in my MainActivity

import android.support.v7.app.AppCompatActivity;

Then I changed Extends Acitivity to AppCompatActivity

And my application crashes at startup I have no errors I looked in the logs

Upvotes: 0

Views: 36

Answers (1)

Ashton Yoon
Ashton Yoon

Reputation: 192

Did you check parent theme of AppTheme in styles.xml?

parent theme should inherit Theme.AppCompat.*

Upvotes: 1

Related Questions