My app does not use AppCompat since my minSdkVersion
is 15
. I want to use smart-app-rate library in it but I am getting (which is expected):
java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
Please note that I can't change my app to AppCompat because A) there is no real need and B) if I do, my app looks totally different that it should.
So, I tried to download the library as ZIP and transformed it to not use AppCompat. I did the steps mentioned in this answer but now I get a whole bunch of errors (like ContextCompat.getColor
, which I would need to replace with non-AppCompat function) and I am not sure if this is the right way to do this.
How do I solve this easily?