In build.gradle (app module), you wrote in the dependency section:
implementation 'gun0912.ted:tedpermission:2.2.3'
it is now
implementation 'io.github.ParkSangGwon:tedpermission-normal:3.4.2'
It currently works with SdkVersion 34.
You may refer to the documentation: