I managed to fixed it. In all tutorials they say only to modify the minimum API Level to Android 8 (currently). And they leave the target api level to highest. In my case when I specified Android 12, it installed some additional libraries and start working. Thanks for all comments.