Skip to content

App build fails with: Could not get unknown property 'debugCompileClasspath' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer. #1062

@Natalia-Hristova

Description

@Natalia-Hristova

Please, provide the details below:

Tell us about the problem

Failing to build an app with this app.gradle

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

  • CLI: CLI-PR-2018.5.16.8, that targets PR for "Allow using JAVA 8+"
  • Runtime(s): tns-android current next

Did the error happen while the app was being constructed? (buildtime error)

yes

This is the error:

Gradle build...
         + setting applicationId
         + applying user-defined configuration from /Volumes/NHRISTOVA/Work/NS/AppJ/app/App_Resources/Android/app.gradle
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Volumes/NHRISTOVA/Work/NS/AppJ/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar

FAILURE: Build failed with an exception.

* Where:
Build file '/Volumes/NHRISTOVA/Work/NS/AppJ/platforms/android/app/build.gradle' line: 407

* What went wrong:
Execution failed for task ':app:extractAllJars'.
> Could not get unknown property 'debugCompileClasspath' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

Did the error happen while the app was executing? (runtime error)

no

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

  1. Make sure you installed the specific version of CLI
  2. tns create SomeApp
  3. Replace ../app/App_Resources/Android/app.gradle with this one
  4. tns platform add android@next
  5. tns build android

Consider using the playground to provide the code you have issues with.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions