I have gone through many answers but i am unable to resolve the error . I have added the gson 2.2.4 library.My App gradle is this.
Asked
Active
Viewed 1.4k times
4
-
4Add this in your gradle section `'com.google.code.gson:gson:2.2.4` .Then `Clean-Rebuild` and `gradle` – IntelliJ Amiya Jan 02 '17 at 07:19
-
Add compile 'com.google.code.gson:gson:2.2.4' in ur build.gradle and sync project. – Nikhil PV Jan 02 '17 at 07:21
-
show your gradle as you are using retrofit gson will imported automatically if you use proper dependency – Kaushik Jan 02 '17 at 07:30
-
in which gradle section should i add bcz there are many section in build.gradle@IntelliJ Amiya – usha Jan 02 '17 at 08:01
1 Answers
2
In your gradle file, if you add the below line please delete it :
configurations { all*.exclude group: 'com.google.code.gson' }`

Sajid2067
- 127
- 1
- 9