jar - proguard - dupe zip entry ( after upgraded facebook parse UI lib to v4 ) -
---solved : deleted 2 lines :app:build.gradle---
compile files('parseloginui/libs/parse-1.9.1.jar') compile files('parseloginui/libs/parsefacebookutilsv4-1.9.1.jar')
the lib comment here can interpreted "you need these 2 statements in proj.root.build.gradle. not true. had delete in order not 'dupe zip' errors proguard.
--solved--
upgrade of parseui library v3 v4 went fine til tried run proguard within gradle "assemblerelease" task.
error:
:proguardrelease failed
failure: build failed exception.
* went wrong: execution failed task ':proguardrelease'. > java.io.ioexception: can't write [/home/rob/src/castvideos-android/build/intermediates/classes-proguard/release/classes.jar] (can't read [/home/rob/src/castvideos-android/build/intermediates/exploded-aar/castvideos-android/parseloginui/unspecified/libs/parse-1.9.1.jar(;;;;;;!meta-inf/manifest.mf)] (duplicate zip entry [parse-1.9.1.jar:com/parse/anonymousauthenticationprovider.class]))
i checked proguard faqs "dupe zip" ... tried figure out how dependency tree might handling dupe of ./libs/parse-1.9.1.jar in library.
im stuck
build.gradle...
packagingoptions { exclude 'meta-inf/lgpl2.1' exclude 'meta-inf/license' exclude 'meta-inf/notice' exclude 'meta-inf/manifest' ... buildtypes { release { minifyenabled true proguardfile 'proguard-android-optimize.txt' signingconfig signingconfigs.release } ... dependencies { compile files('libs/android-query.0.25.10.jar') compile files('libs/jackson-core-lgpl-1.9.2.jar') compile files('libs/jackson-mapper-lgpl-1.9.2.jar') compile 'com.github.amlcurran.showcaseview:library:5.0.0' compile group: 'org.apache.httpcomponents' , name: 'httpclient-android' , version: '4.3.5' // around https://code.google.com/p/android/issues/detail?id=52962, need // depend on both debug , release versions of library releasecompile project(path: '..:castcompanionlibrary-android', configuration: 'release') debugcompile project(path: '..:castcompanionlibrary-android', configuration: 'debug') compile project(':parseloginui') compile files('parseloginui/libs/parse-1.9.1.jar') compile files('parseloginui/libs/parsefacebookutilsv4-1.9.1.jar') compile 'com.facebook.android:facebook-android-sdk:4.0.1' }
dependency graph "release"...
... +--- project :parseloginui | +--- com.parse.bolts:bolts-android:1.2.0 | \--- com.android.support:support-v4:22.0.0 | \--- com.android.support:support-annotations:22.0.0 +--- com.facebook.android:facebook-android-sdk:4.0.1 | +--- com.android.support:support-v4:[21,22) -> 22.0.0 (*) | \--- com.parse.bolts:bolts-android:1.1.4 -> 1.2.0 \--- project :..:castcompanionlibrary-android +--- com.android.support:appcompat-v7:22.+ -> 22.0.0 | \--- com.android.support:support-v4:22.0.0 (*) +--- com.android.support:mediarouter-v7:22.+ -> 22.0.0 | \--- com.android.support:appcompat-v7:22.0.0 (*) \--- com.google.android.gms:play-services-cast:7.+ -> 7.0.0 \--- com.google.android.gms:play-services-base:7.0.0 \--- com.android.support:support-v4:22.0.0 (*)
under project.root, jar files :
./parseloginui/libs/parsefacebookutilsv4-1.9.1.jar ./parseloginui/libs/parse-1.9.1.jar
proguard config...
-keep class com.facebook.** { *; } -keep class com.parse.** { *; } -dontwarn com.parse.** -dontnote com.parse.**
Comments
Post a Comment