Hello @Egg,
I have faced the same problem while syncing the project. I have resolved the error by changing the Android Gradle Plugin Version from 3.3.2 to 4.0.1. Go to File > Project Structure > Project > Android Gradle Plugin Version. Then change the version to 4.0.1. You can also change the version from build.gradle file.
Hope this will help you. Please share your status.
Thanks,
Ummey