-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
When generating a signed APK with the ProdRelease build, I get these errors:
C:\Code\GitHub\apps-android-commons\app\build.gradle
Error:Error: commons-logging defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]
Error:Error: httpclient defines classes that conflict with classes now provided by Android. Solutions include finding newer versions or alternative libraries that don't have the same problem (for example, for httpclient use HttpUrlConnection or okhttp instead), or repackaging the library using something like jarjar. [DuplicatePlatformClasses]
I was able to carry on and generate the APK regardless, but we should still probably look into them so that we don't keep getting errors in future versions.
Update: Currently, it seems that in order to release any of the new features post-2.5.0, we will need to:
- Fix issue with commons-logging and httpclient
- Fix error with kaptProdReleaseKotlin
- Re-test ProdRelease build (I am hoping we can find a way for other devs to test release builds as well, see Testing Release build? #988