triniwiz / nativescript-downloader

Apache License 2.0
32 stars 18 forks source link

Multiple dex files define Landroid/support/design/widget/CoordinatorLayout #16

Closed FranciZ closed 6 years ago

FranciZ commented 6 years ago

Which platform(s) does your issue occur on?

Please, provide the following version numbers that your issue occurs with:

Dev dependencies

"devDependencies": {
    "@angular/compiler-cli": "~5.2.0",
    "@ngtools/webpack": "~1.9.4",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "codelyzer": "~4.0.2",
    "copy-webpack-plugin": "~4.3.0",
    "css-loader": "~0.28.7",
    "extract-text-webpack-plugin": "~3.0.2",
    "lazy": "1.0.11",
    "nativescript-dev-sass": "1.5.0",
    "nativescript-dev-typescript": "~0.6.0",
    "nativescript-dev-webpack": "~0.9.1",
    "nativescript-worker-loader": "~0.8.1",
    "raw-loader": "~0.5.1",
    "resolve-url-loader": "~2.2.1",
    "sass-loader": "~6.0.6",
    "tslint": "~5.8.0",
    "typescript": "~2.6.2",
    "uglifyjs-webpack-plugin": "~1.1.6",
    "webpack": "~3.10.0",
    "webpack-bundle-analyzer": "^2.9.1",
    "webpack-sources": "~1.1.0"
  }

Dependencies

"dependencies": {
    "@angular/animations": "~5.2.0",
    "@angular/common": "~5.2.0",
    "@angular/compiler": "~5.2.0",
    "@angular/core": "~5.2.0",
    "@angular/forms": "~5.2.0",
    "@angular/http": "~5.2.0",
    "@angular/platform-browser": "~5.2.0",
    "@angular/platform-browser-dynamic": "~5.2.0",
    "@angular/router": "~5.2.0",
    "@types/gsap": "1.19.2",
    "lodash": "4.17.5",
    "mobx": "4.1.1",
    "mobx-angular": "3.0.1",
    "moment": "2.22.1",
    "nativescript-angular": "~5.2.0",
    "nativescript-animated-circle": "1.1.0",
    "nativescript-background-http": "3.2.5",
    "nativescript-barcodescanner": "2.7.6",
    "nativescript-camera": "4.0.2",
    "nativescript-fancyalert": "1.2.0",
    "nativescript-geolocation": "4.2.6",
    "nativescript-gif": "3.1.1",
    "nativescript-google-maps-sdk": "2.5.0",
    "nativescript-imagepicker": "6.0.0",
    "nativescript-iqkeyboardmanager": "1.3.0",
    "nativescript-loading-indicator": "2.4.0",
    "nativescript-localstorage": "1.1.5",
    "nativescript-ng-shadow": "2.1.0",
    "nativescript-ngx-fonticon": "4.1.0",
    "nativescript-pager": "7.2.3",
    "nativescript-permissions": "1.2.3",
    "nativescript-pro-ui": "~3.3.0",
    "nativescript-socket.io": "0.9.0",
    "nativescript-theme-core": "~1.0.4",
    "nativescript-toolbox": "3.0.1",
    "reflect-metadata": "~0.1.10",
    "rxjs": "~5.5.5",
    "shifty": "2.3.1",
    "tns-core-modules": "3.4.1",
    "uuid": "3.2.1",
    "zone.js": "~0.8.18"
  }

Please, tell us how to recreate the issue in as much detail as possible.

When trying to run on Android 8.1.0 with the plugins listed above I get the below error. My guess is another library has a conflicting definition but I'm not sure how to approach this problem. Help appreciated.

> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/design/widget/CoordinatorLayout$Behavior;

I've tried running tns platform remove android and I removed node_modules. I've installed 1.1.0 which is for version 3.x since I have 3.4.2.

Is there any code involved?

Not really. Just installed the library and it wont run on Android.

FranciZ commented 6 years ago

Found the answer in another issue, https://github.com/triniwiz/nativescript-downloader/issues/10#issuecomment-380263459.