Can anyone explain to me the cause of this error? I know what is dexpath and dex class in android and how to fix this error. but don't know what is the cause of this error popping up every now and then.
This error occurs when
- I transfer my project from one pc/laptop to another pc/laptop.
- Whenever I've updated my android Studio lets say from AS 2 to AS 3 canary or stable release.
- Uninstall and reinstall the Android studio and try opeining the Project again.
How I'm Fixing it:
Just remove all the dependencies and everything related to DEX Class
file from gradle and sync it and then revert back to gradle settings with all the DEX
file and dependencies added and Sync
again. VOILAAA ..
And this is really annoying. How I can avoid this issue for my other projects without going through all this gradle sync
tweak.