Skip to content

Unable to build plugins with rc of Android runtime #4353

@rosen-vladimirov

Description

@rosen-vladimirov

Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.2.0-2019-02-07-12917 (could reproduce with 5.1.1 as well)
  • Cross-platform modules: Not applicable
  • Android Runtime: 5.2.0-rc-2019-02-06-135138-02
  • iOS Runtime: Not applicable
  • Plugin(s):
 "dependencies": {
    "nativescript-camera": "^3.1.2",
    "nativescript-feedback": "^1.3.4",
    "nativescript-imagecropper": "^1.0.4",
    "nativescript-permissions": "^1.2.3",
    "nativescript-theme-core": "^1.0.4",
    "nativescript-unit-test-runner": "^0.3.4",
    "tns-core-modules": "^5.1.1"
  },

Describe the bug
When trying to build a project for Android, CLI checks the dependencies in the project and builds .aar for each of them that has some res or AndroidManifest.xml. CLI uses the gradle version from the current Android Runtime. In the latest rc, we have updated the Gradle version to 3.3.x. This version is stricter when checking the compile time and runtime dependencies and currently we fail to build .aar files for some plugins, for example nativescript-imagecropper, nativescript-feedback etc.

To Reproduce

$ tns create myApp --js
$ cd myApp
$ npm i --save nativescript-camera nativescript-imagecropper nativescript-feedback
$ tns build android

Expected behavior
CLI should build .aar files correctly.

Metadata

Metadata

Labels

no-changelogThe issue is present only in `next` versions and was not included in official version.os: androidseverity: critical

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions