javiersantos / AppUpdater

A library that checks for your apps' updates on Google Play, GitHub, Amazon, F-Droid or your own server. API 9+ required.
Apache License 2.0
1.98k stars 412 forks source link

By adding this library, I am unable to generate signed APK. The error is "Duplicate Entry" #139

Open rakeshbaral92 opened 6 years ago

rakeshbaral92 commented 6 years ago
Details
Builder
new AppUpdater(this)
   ...
   .start();
Reproduction Steps

1. 2. 3.

Expected Result
Actual Result
javiersantos commented 6 years ago

The problem may be a dependency conflict (possible duplicate of #112). Please, paste the build.gradle file of your project.

rakeshbaral92 commented 6 years ago

buildgradle.txt

javiersantos commented 6 years ago

One of your dependencies could be including okhttp or jsoup.

Try with:

implementation ('com.github.javiersantos:AppUpdater:[latest_version]') {
    exclude group: 'com.squareup.okhttp3'
}

or

implementation ('com.github.javiersantos:AppUpdater:[latest_version]') {
    exclude group: 'org.jsoup'
}

On the other hand, it would be very useful to include more details about the log, which will show which class is affecting the compilation.

rakeshbaral92 commented 6 years ago

Issue Class for generating signed APK

On Fri, Jul 13, 2018 at 6:37 PM, Javier Santos notifications@github.com wrote:

One of your dependencies could be including okhttp or jsoup.

Try with:

implementation ('com.github.javiersantos:AppUpdater:[latest_version]') { exclude group: 'com.squareup.okhttp3' }

or

implementation ('com.github.javiersantos:AppUpdater:[latest_version]') { exclude group: 'org.jsoup' }

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/javiersantos/AppUpdater/issues/139#issuecomment-404828161, or mute the thread https://github.com/notifications/unsubscribe-auth/Ac_mNPXOYwIylg1D1ymhFx4YCn-atGPsks5uGJuQgaJpZM4VO1dn .

--

Thanks & Regards

Rakesh Kumar Baral (Android Developer)

[image: Inline image 5] Nexus Technoware Solution Pvt.Ltd (Microsoft Certified & STPI Registered Company) (CIN : U72200OR2007PTC009685)

Plot No: 1692/4371, Nalini Nilaya,Green Park, Kalarahanga, Near Kripalu Residency, Patia, Bhubaneswar-751024, India Contact No- +91-9778209633, +91-8260003333 http://www.ntspl.co.in & http://www.ntsplhostin http://www.ntsplhosting.com/g.com https://www.ntsplhosting.com/security/ssl-certificate/

https://www.ntsplhosting.com/security/ssl-certificate/

https://www.ntsplhosting.com/security/ssl-certificate/ https://www.ntsplhosting.com/security/ssl-certificate/

ChathuraKarunanayaka commented 5 years ago

when the above lines are added, it gives below warnings and unable to generate signed apk

ChathuraKarunanayaka commented 5 years ago
com.github.javiersantos.appupdater.UtilsLibrary: can't find referenced class org.jsoup.Jsoup  
com.github.javiersantos.appupdater.UtilsLibrary: can't find referenced class org.jsoup.Connection  
com.github.javiersantos.appupdater.UtilsLibrary: can't find referenced class org.jsoup.nodes.Document  
com.github.javiersantos.appupdater.UtilsLibrary: can't find referenced class org.jsoup.select.Elements  
com.github.javiersantos.appupdater.UtilsLibrary: can't find referenced class org.jsoup.nodes.Element