When I extends AppCompatActivity app crashes, with no logcat but when I extends Activity it runs, please help.
Extends AppCompatActivity vs extends Activity
Add to dependencies
compile (‘android.arch.core:runtime:+’) {
force = true
}
I’m getting the exact same issue and have followed what a lot of other threads are saying to do to fix the issue. As Lucasian has said, logcat doesn’t show anything.
Added appcompat and design libraries to the gradle build file. Changed the theme to Theme.AppCompat.Light.DarkActionBar and extended AppCompatActivity while importing it into my main activity. Added what paladin has said. It still force closes…
When doing that, one should refresh libraries from the Settings and rebuild the project.
Worked in my case.