Skip to content

include.gradle file generated from the @progress archive package creates issues #191

Closed
@joey0xx

Description

@joey0xx

Did you verify this is a real problem by searching Stack Overflow?

Yes

Tell us about the problem

When building a project I get the following error:
Flavor 'nativescript-telerik-ui' has unknown dimension 'nativescript-telerik-ui'.

It only happens when I install the package from the @progress scope. When I install it from a local .tgz file it builds without any issues.

I researched a bit and found out that the include.gradle is associated with this error so I installed the package from the @progress scope and from a local .tgz file and compared the include.gradle files.

The contents of the include.gradle file from the package in the @progress scope looks like this:

android {
	productFlavors {
		"nativescript-telerik-ui" {
			dimension "nativescript-telerik-ui"
		}
	}
}

And the contents of the include.gradle file from the package in the local .tgz file looks like this:

android {
	productFlavors {
		"F6" {
			dimension "nativescripttelerikuipro"
		}
	}
}

So I replaced the include.gradle generated from the @progress scope with the latter and it got past that error.

Update* Read in the following url that when the plugin doesnt have the inlcude.gradle file, at build time gradle generates a default one with default elements:
https://docs.nativescript.org/plugins/plugins#includegradle-specification

It seems like that i sthe case and for some reason its throwing the error.

Which platform(s) does your issue occur on?

Android

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

  • **Progress NativeScript UI version: 2.0.1

  • **CLI: 3.0.0

  • **Cross-platform modules: 3.0.0

  • **Runtime(s): tns-android: 3.0.0 and tns-ios: 2.5.0

  • **Other Plugin(s):

"dependencies": {
    "@angular/animations": "^4.1.1",
    "@angular/common": "^4.1.1",
    "@angular/compiler": "^4.1.1",
    "@angular/compiler-cli": "^4.1.1",
    "@angular/core": "^4.1.1",
    "@angular/forms": "^4.1.1",
    "@angular/http": "^4.1.1",
    "@angular/platform-browser": "~4.1.1",
    "@angular/router": "~4.1.1",
    "@progress/nativescript-telerik-ui-pro": "^2.0.1",
    "bootstrap": "3.3.7",
    "email-validator": "1.0.4",
    "nativescript-angular": "~3.0.0",
    "nativescript-bottombar": "^2.0.1",
    "nativescript-cardview": "^2.0.0-rc.0",
    "nativescript-fresco": "^3.0.2",
    "nativescript-hockey-sdk": "^1.1.0",
    "nativescript-mapbox": "^2.5.3",
    "nativescript-ngx-fonticon": "^2.0.0",
    "nativescript-social-share": "1.3.1",
    "nativescript-theme-core": "~1.0.2",
    "nativescript-unit-test-runner": "^0.3.3",
    "reflect-metadata": "^0.1.8",
    "rxjs": "^5.0.1",
    "tns-core-modules": "^3.0.0",
    "typescript": "^2.3.2"
  },
  "devDependencies": {
    "zone.js": "^0.8.4",
    "babel-traverse": "6.8.0",
    "babel-types": "6.8.1",
    "babylon": "6.8.0",
    "codelyzer": "0.0.28",
    "filewalker": "0.1.2",
    "jasmine-core": "^2.4.1",
    "karma": "^1.2.0",
    "karma-jasmine": "^1.0.2",
    "karma-nativescript-launcher": "^0.4.0",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "^0.3.2",
    "tslint": "^3.14.0",
  }

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

  1. create a new hello world app: tns create HelloWorld --template nativescript-template-ng-tutorial
  2. use the command npm login --registry=https://registry.npm.telerik.com/ --scope=@progress to log in if you're a paying customer.
  3. use the command npm install --save @progress/nativescript-telerik-ui-pro to install the plugin
  4. use tns run android

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Nope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions