Rating Dialog Help!

I have a bunch of different rating dialogs I have used in the past and with newer API levels of apps I find some of them simply do not work!

android {
compileSdkVersion 27
buildToolsVersion “27.0.2”

defaultConfig {
    applicationId "com.test.app"
    minSdkVersion 14
    targetSdkVersion 27

This is my current build and all the ones I have tried do not work. Can anyone link me or provide a simple rating dialog that would work on these specs??? thankyou!

can you post your code to check it