Android Apps, Android App Development, Androi̇d, AndroidDev, Dependencies.
contains its own version of Gson, which conflicts with the version we’ve explicitly declared. When you try to sync your project or build it, Gradle may throw an error. To solve this error using the exclude directive, you can modify your dependencies block as follows: dependencies {