Skip to content

Compilation Error when adding the gmail4j library to the gradle  #20

@shaaaaadi

Description

@shaaaaadi

i'm trying to build the app after adding the implementation group: 'com.googlecode.gmail4j', name: 'gmail4j', version: '0.4'

I got this error: Program type already present: com.sun.mail.smtp.SMTPOutputStream

this is my all dependencies:
dependencies {
// compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})

//noinspection GradleCompatible
//compile 'com.android.support:appcompat-v7:24.2.1'//original
implementation 'com.android.support:appcompat-v7:26.0.2'//new
implementation 'com.android.support:design:24.2.1'
implementation 'com.android.support:support-v4:24.2.1'
implementation 'com.android.support:support-vector-drawable:24.2.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
implementation files('libs/activation.jar')
implementation files('libs/additionnal.jar')
implementation files('libs/mail.jar')
implementation 'com.github.florent37:camerafragment:1.0.7'

//add lib of photoview
implementation 'com.github.chrisbanes:PhotoView:1.2.6'

//Add Gmail Dependency
implementation group: 'com.googlecode.gmail4j', name: 'gmail4j', version: '0.4'

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions