I have recently updated my android sdk version from 25 to 26.
After updating the app
, i\'m receiving this error:
Error:Execution failed
Caused by: com.android.dex.DexException: Multiple dex files define Lcom/squareup/picasso/Cache;
Do not use JAR files when an artifact dependency is available.
Replace:
implementation files('libs/picasso-2.5.2.jar')
with:
implementation 'com.squareup.picasso:picasso:2.5.2'
This should allow Gradle to only include one copy of the Picasso classes, whereas now you are trying to include two copies of those classes.
Go to player settings > Project Settings > Minify, in there, there will be an option of Release and debug, set them to Gradle and try if does not work set them bith proguard and try, i am sure one solution will be fine.