Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program type already present: com.android.volley.BuildConfig

I have one library project in which i have implemented volley library.

api 'com.android.volley:volley:1.1.0'

So i can use same library in main application. But when i try to use in main application and try to build apk then issue is that Program type already present: com.android.volley.BuildConfig

But if i exclude volley from library project and comment classes that using volley, doing below line then i am able to build apk.

exclude group: "com.android.volley"

So how i can resolve this issue?

like image 268
user2800219 Avatar asked Aug 14 '26 07:08

user2800219


1 Answers

Try to remove the library from the module and from the project as well and try to implement volley implementation 'com.android.volley:volley:1.0.0' on build.gradle of both module and project file.

like image 59
Jalal Tauseef Avatar answered Aug 16 '26 22:08

Jalal Tauseef