Code Monkey home page Code Monkey logo

Comments (3)

zoeitsolutions avatar zoeitsolutions commented on August 21, 2024

I was able to resolve it by adding the following to my gradle file:

packagingOptions {
exclude 'META-INF/maven/com.squareup.okhttp3/okhttp/pom.xml'
exclude 'META-INF/maven/com.squareup.okio/okio/pom.properties'
exclude 'META-INF/maven/com.squareup.okio/okio/pom.xml'
exclude 'META-INF/maven/com.squareup.okhttp3/okhttp/pom.properties'

}

The build passes and I can run the app. I am going to test to see if the plugin still works as intended.

from nativescript-socket.io.

naderio avatar naderio commented on August 21, 2024

@zoeitsolutions you can can also change include.gradle of one of the conflicting plugins to exclude the unwanted package. for instance:

    compile ('io.socket:socket.io-client:0.8.+') {
       exclude group: 'org.json', module: 'json'
+      exclude group: 'com.squareup.okio', module: 'okio'
+      exclude group: 'com.squareup.okhttp3', module: 'okhttp'
    }

here org.json is a dependency of one of google packages (play services, I think), thus no need to re-include it.

Personally, I keep within version control all include.gradle and Podfile from dependencies (node_modules). This make fixing conflicts and tuning native dependencies versions easier.

from nativescript-socket.io.

zoeitsolutions avatar zoeitsolutions commented on August 21, 2024

Thank you this works well.

from nativescript-socket.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.