I've solved it! It was simpler than I expected. I updated the Gradle version in Android Studio. Probably, I had an incompatible version, but at first, it wasn't obvious to detect.