android


Proguard duplicate zip entry error in eventbus library


I've been trying to build a signed apk file, but every time I do that I receive the next error:
Warning:Exception while processing task java.io.IOException: Can't write
[C:\Users\Username\AndroidStudioProjects\TestApp\app\build\intermediates\
transforms\proguard\release\jars\3\1f\main.jar] (Can't read [C:\Users\
Username\.gradle\caches\modules-2\files-2.1\org.greenrobot\eventbus\3.0.0\
ddd99896e9569eaababbe81b35d80e1b91c4ad85\eventbus-3.0.0.jar(;;;;;;**.class)]
(Duplicate zip entry [org/greenrobot/eventbus/a.class ==
eventbus-3.0.0.jar:org/greenrobot/eventbus/AsyncPoster.class]))
I tried to keep eventbus library from obfuscation by inserting this code into proguard-rules.pro file:
-dontwarn org.greenrobot.eventbus.**
-keep class org.greenrobot.eventbus.** { *; }
but it didn't work, I still have the error. Here's how I add a dependency in the build.gradle file:
dependencies {
compile 'org.greenrobot:eventbus:3.0.0'
}
I spent quite a while searching this site for solution, but nothing worked for me.

Related Links

Trouble integrating FB login into my android app
How to make search widget larger in actionbar?
Android Layout Design Specific Custom
Generic Asynctask for multiple activities
ListView OnItemClickListener doesn't fire
Get access to particular item's layout in list view
Android: OTG Storage notification conflicts with radio c
Layout looks different on devices
Check android device density in html
Is that possible to connect two phones with adb connect?
App using Mobile Android GNSK crashes when identifyAlbumAsync() is called before audioProcessStart()
Get values from multiple RadioGroups
Can't Initialize Google Play Services
RESTful Api or Socket.IO
Android adding image to picture taken with camera
Cannot see any git branches

Categories

HOME
linkedin
dns
gpu
nunit
youtube-data-api-v3
fftw
can
access
yandex
pyqt4
nested-if
jetty
echo
iis-6
special-characters
angular-dart
php-5.6
comsol
eip
scrolltop
scsi
easyphp
git-extensions
lilypond
ksh
pagespeed
surveymonkey
contacts
gnat-gps
ods
metaprogramming
demo
chef-solo
signals-slots
trigonometry
branching-and-merging
insight
opengl-4
filehandle
avx
seq
rackspace-cloud
baidu
rxtx
testrail
hadoop-2.7.2
nikeplus-api
ng-grid
ikiwiki
ascii-art
rasterize
libvlc
rubaxa-sortable
openbabel
adehabitathr
paw
xml-namespaces
malformedurlexception
winginx
paste
radiant
inappsettingskit
cmmi
ui-select2
poker
patricia-trie
subproject
jsr286
jquery-address
entity-attribute-value
entitydatasource
drawtobitmap
codebase
objective-j
squishit
maven-1
commercial-application

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App