android - Duplicate entry: okhttp3/internal/ws/RealWebSocket$1.class -


i using leancloud push notification service provider somehow when run app gives me error. below dependencies:

dependencies {     compile 'com.android.support:multidex:1.0.1'     compile project(':react-native-push-notification')     compile project(':react-native-svg')     compile project(':react-native-fbsdk')     compile project(':react-native-picker')     compile project(':react-native-maps')     compile project(':react-native-wechat')     compile project(':react-native-code-push')     compile filetree(dir: "libs", include: ["*.jar"])     compile ("com.android.support:appcompat-v7:23.0.1")     compile ("com.facebook.react:react-native:+")  // node_modules     compile ('com.facebook.android:facebook-android-sdk:[4.22.1)')     compile ('cn.leancloud.android:avoscloud-sdk:v4.4.4')     compile ('cn.leancloud.android:avoscloud-push:v4.4.4@aar'){         transitive = true     } } 

the exact error message:

error:execution failed task ':app:transformclasseswithjarmergingfordebug'.

com.android.build.api.transform.transformexception: java.util.zip.zipexception: duplicate entry: okhttp3/internal/ws/realwebsocket$1.class

i have tried add "exclude group: 'com.squareup.okhttp3', module: 'okhttp'". allows me run app somehow can't register device on leancloud server.

i stuck in problem long. or suggestions.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -