You should provide more details about your issue for us to be able to help you.
- Do you use the latest AGP? If not then please upgrade it. (Note: Ensure that your project's Gradle wrapper is compatible with the updated AGP version). Also, upgrade the compileSdkVersion & targetSdkVersion