Skip to content
Advertisement

Getting Errors in Flutter while creating first app app:checkDebugDuplicateClasses

I am just trying to launch the first basic created code on flutter which is the counter button on the screen, now if I try to Debug it then it always gets messed up in all sorts of errors. Currently, the error is this:

JavaScript

Advertisement

Answer

Hi Usually this is caused by something unwanted being cached, there are two ways to fix this usually:

  1. Run flutter clean inside terminal from the root of your flutter project. Restart your emulator and rebuild the project.

  2. If that doesn’t work, close Android Studio, Navigate to your gradle cache, C:/Users/YourUser/.gradle/caches and delete everything inside, then reopen Android Studio and try again.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement