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

Devices Layout [Android]
URLClassLoader working on Java but not in Android
How to know if the application is in foreground?
Android class diagram and XML
Prestashop and web service(Restful), HttpURLConnection, BufferedReader
Assign text read from file in network to TextView in Android fragment
How to execute TranslateAnimation sequentially without knowing how many translate you'll have to do (android)?
Android MediaCodec issue on Alcatel OneTouch 7025D
FATAL EXCEPTION: java.lang.RuntimeException: takePicture failed
Detect if Google Plays services is installed from a browser
Android Read WhatsApp Data
Which is best for an android app: Using bitmap or drawing the circle?
Which Intent is broadcasted when networkType(Telephony Manager) changes
Android : Static Spinner values match based on DatePicker
Spinner image changes in android?
Get item ID from populated ListView

Categories

HOME
django
go
httparty
assembly
microsoftgraph
polymer
linkedin
jmeter
pagination
powerpoint
owl-carousel
replace
ms-access-2016
tail
banner
webix
odoo-8
nfs
bing-maps
performancepoint
mel
resultset
symbol
aws-sdk
easyphp
delphi-xe5
selinux
guzzle
flask-sqlalchemy
interpreter
mount
maze
corpus
nstimer
oculus
dotspatial
deltaspike
hibernate-search
sharding
browser-extension
getlasterror
python-pptx
apic
z-notation
ods
urlsession
mcustomscrollbar
magento-1.9.3
apollostack
memory-mapping
strftime
dbcontext
x-ray
page-replacement
amq
stdmap
truezip
git-flow
skin
check-mk
java-websocket
filenet
branch-prediction
cvxpy
macaulay2
jodd
query-by-example
phpwebsocket
pushbots
blitline
piracy-prevention
jaunt-api
relativelayout
inf
file-move
roadkill-wiki
android-launcher
opserver
toolkit
lasso
avahi
nutiteq
java-security
bcache
cryptographichashfunction
rmysql
jama
parallel-testing
lnk
ray
printdialog
unit-of-work
android-icons
windows-98
dopostback
nokia-s40
apache-whirr
window-decoration
workflow-services
fsevents
google-ajax-api
webdev.webserver
twitterizer
delimited-text
aspmenu
interprocess
application-verifier
sifr
strtod
alsb
entitykey

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