Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Duplicate key com.android.build.gradle.internal.api.artifact.BuildableArtifactImpl@7c139f68

Tags:

I have update my android studio to 3.2 canary8 .It throws an exception when configuring build.Duplicate key com.android.build.gradle.internal.api.artifact.BuildableArtifactImpl@7c139f68.Has anyone gotten this problem,and How to resolve it?

like image 630
Lemon Avatar asked Mar 27 '18 09:03

Lemon


1 Answers

change name "main" to another name in the productFlavors in build.gradle.

productFlavors {     main {         //...     }     qa {         //...     } } 

New format:

productFlavors {     orginal {         //...     }     qa {         //...     } } 
like image 120
Pouriya Khalaj Avatar answered Sep 21 '22 11:09

Pouriya Khalaj