I’m using custom toast

Solution for I’m using custom toast
is Given Below:

I’m using RTLToast to my main activity

I have do right all of the guide from the link but it didn’t work
when I’m trying to writ my cod to main activity it didn’t import and it has error

my cod inside the main activity

   @Override
public void onBackPressed() {
    if (1500L + back_pressed > System.currentTimeMillis()) {
        super.onBackPressed();
        return;
    }
    RTLToast.Config.getInstance()
            .setTextColor(Color.WHITE)
            .setInfoColor(Color.BLUE)
            .setToastTypeface(Typeface.createFromAsset(getAssets(), "fonts/vazir.ttf"))
            .apply();
    RTLToast.info(this, "برای خارج شدن لطفا دوبار کلیک کنید", Toast.LENGTH_SHORT, true).show();
    RTLToast.Config.reset();
    back_pressed = System.currentTimeMillis();
}

cod on the builde.gradle on app

implementation 'com.github.hatamiarash7:RTL-Toast:1.3'

cod on the builde.gradle on project

buildscript {
repositories {
    google()
    mavenCentral()
    jcenter()
    maven {
        url 'https://jitpack.io'
    }
}