hotchemi / Android-Rate

Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
http://hotchemi.github.io/Android-Rate
MIT License
724 stars 216 forks source link

Runtime Exception: You need to use a Theme.AppCompat theme (or descendant) with this activity #99

Closed namannik closed 8 years ago

namannik commented 8 years ago

The library crashes when attempting to show the rate dialog. The crash says:

Fatal Exception: java.lang.RuntimeException
Unable to start activity ComponentInfo{com.heartv/com.heartvApp.hearTVactivity}: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.

Here's the crash report:

https://fabric.io/heartv/android/apps/com.heartv/issues/56fb1a58ffcdc042503e3436

Any ideas how I can resolve this? (My activity called hearTVactivity extends FragmentActivity.)

namannik commented 8 years ago

I've fixed this issue in my app by changing my app's theme to android:theme="@style/Theme.AppCompat.Light" in the application section of AndroidManifest.xml.

hotchemi commented 8 years ago

Umm, I'll investigate.

hotchemi commented 8 years ago

Could you check with 1.0.1?

namannik commented 8 years ago

Yes, that fixed the problem. Thanks!