I reached the 64k limit for dex files in Android. I want to avoid enabling multidex. In an attempt to reduce the amount of methods I started removing dependencies I am not using anymore. The thing is I am still getting the same error saying I have 78k methods (exactly the same number before removing the dependencies), I have already removed 3 big dependencies that should have at least lowered my methods by 1. It seems flutter is still adding the dependencies to my apk despite them being removed from pubspec.yml.
I already tried:
flutter clean
- Getting & Upgrading packages
- Restarting my IDE
- Restarting my Computer
- Deleting ~/.pub-cache