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

Android certificate is expired
Google Play - Compability error on publish game made in Unity
Select only one radio button at a time in custom list view, android
Alert does not appear
What do I need to develop an Android chat app? On server,on client [closed]
how will I display the string that i getText() on the textview
Get meta-data from manifest in UnitTest
Android Bluetooth Client and Server Won't Connect
How to open application by clicking widget
Imageadapter and listview with image from json
Google Android Development Tool crashes periodically on Linux host…is this normal?
Java.net.socket exception:address family not supported when i tried on physical device,but it is working fine with emulator
Application get crashed when came back from camera
Android: Disable DialogFragment OK Buttons Until Select A Radio Value
How to get notification on custom lock screen
Android: How can I set mMultiWindowStyle of Intent

Categories

HOME
shell
django
asp.net-web-api
eslint
github-for-windows
devise
rds
3d-reconstruction
web-hosting
mapbox
nuget-package
title
mxgraph
angular-dart
eip
azure-powershell
symfony-2.8
job-scheduling
production
simpleitk
subclass
winpe
google-cast
send
mockjax
rselenium
baidu-map
xajax
python-pptx
visa
laravel-elixir
dynamic-linq
builder
serde
launchctl
x-ray
pair-programming
tinkerpop
semantic-logging
compiler-design
bbpress
type-theory
simplepie
atlas
grails-plugin
autosar
custom-lists
actor-platform
webjars
respondcms
shopping
php-socket
createprocess
yajsw
fuzzywuzzy
atan2
flock
sapscript
batik
mod-proxy
iced-coffeescript
lasso
zscript
botan
google-refine
android-broadcast
j-security-check
procedural-programming
delayed-execution
cosine-similarity
angular-gettext
paw
jama
gii
ss7
codeplex
alternate
dct
paste
file-not-found
inappsettingskit
gpars
abstract-data-type
preload
wimax
fragmenttransaction
web-farm
zope.interface
josql
htdocs
tournament
uipagecontrol
instantiationexception
dot-emacs
visualj#
xpsdocument
sqlobject
pbcopy

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