Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shaaaaadi opened this issue May 1, 2020 · 0 comments
Open

Comments

@shaaaaadi
Copy link

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'

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant