Skip to content

'A problem occurred configured project ':app'., followed by 'entry' #10365

@paul-muckypuddle

Description

@paul-muckypuddle

Issue Description

Running ns run android on NS 8.5, I get the following result from Gradle:

Gradle build...
         + applying user-defined buildscript from /Users/paulholmes/Clients/soc/soc-app-nativescript-build/App_Resources/Android/buildscript.gradle
         + setting applicationId
         + applying user-defined configuration from /Users/paulholmes/Clients/soc/soc-app-nativescript-build/App_Resources/Android/app.gradle
         + adding nativescript runtime package dependency: nativescript-optimized-with-inspector
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript/core/platforms/android/core.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript/core/platforms/android/widgets-release.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript/email/platforms/android/email.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript/firebase/platforms/android/firebase.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript/firebase/platforms/android/firebase-release.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript-community/ui-material-core/platforms/android/ui_material_core.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/@nativescript-community/ui-material-core-tabs/platforms/android/ui_material_core_tabs.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/nativescript-ui-core/platforms/android/TNSCore-release.aar
         + adding aar plugin dependency: /Users/paulholmes/Clients/soc/soc-app-nativescript-build/node_modules/nativescript-ui-sidedrawer/platforms/android/TNSSideDrawer-release.aar

Build file '/Users/paulholmes/Clients/soc/soc-app-nativescript-build/platforms/android/app/build.gradle' line: 586
A problem occurred configuring project ':app'.
entry

Unable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.

Looking atl ine 586 of build.gradle, I see:

// Discover all jars and dynamically create tasks for the extraction of each of them
project.ext.allJars = []
allprojects {
    afterEvaluate { project ->
        def buildType = project.selectedBuildType
        def jars = []
        def artifactType = Attribute.of('artifactType', String)
        android.applicationVariants.all { variant ->
            if (variant.buildType.name == buildType) {
                variant.getCompileClasspath().each { fileDependency ->  <---- this is line 586
                    processJar(fileDependency, jars)
                }
            }
        }
    }
}

I have no idea where to start debugging this as the output of:

Build file '/Users/paulholmes/Clients/soc/soc-app-nativescript-build/platforms/android/app/build.gradle' line: 586
A problem occurred configuring project ':app'.
entry

Gives me no clues!

Any assistance appreciated!

Reproduction

No response

Relevant log output (if applicable)

No response

Environment

OS: macOS 13.4.1
CPU: (8) x64 Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
Shell: /bin/zsh
node: 16.19.1
npm: 8.19.3
nativescript: Not Found

# android
java: 15.0.2
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 14.3.1/14E300c
cocoapods: 1.10.2
python: 3.11.4
python3: 3.11.4
ruby: 2.7.8
platforms: 
  - DriverKit 22.4
  - iOS 16.4
  - macOS 13.3
  - tvOS 16.4
  - watchOS 9.4

Dependencies

"dependencies": {
  "@carployee/openapp": "^1.0.1",
  "@nativescript-community/ui-mapbox": "^6.1.0",
  "@nativescript-community/ui-material-bottom-navigation": "7.0.2",
  "@nativescript/appavailability": "^2.0.0",
  "@nativescript/appversion": "^2.0.0",
  "@nativescript/core": "~8.5.0",
  "@nativescript/directions": "^2.0.0",
  "@nativescript/email": "^2.0.4",
  "@nativescript/firebase": "^11.1.3",
  "@nativescript/iqkeyboardmanager": "^2.0.0",
  "@nativescript/theme": "~3.0.1",
  "geodesy": "1.1.3",
  "nativescript-appversion": "^1.4.4",
  "nativescript-sqlite": "^2.7.0",
  "nativescript-ui-sidedrawer": "~9.0.3",
  "nativescript-vue": "~2.9.0",
  "rxjs": "~6.6.0",
  "typeorm": "0.2.13",
  "vue-template-compiler": "^2.7.14"
},
"devDependencies": {
  "@babel/plugin-proposal-class-properties": "^7.13.0",
  "@babel/plugin-proposal-decorators": "^7.13.15",
  "@nativescript/android": "8.5.1",
  "@nativescript/ios": "~8.5.0",
  "@nativescript/webpack": "5.0.2",
  "nativescript-vue-template-compiler": "~2.9.0",
  "patch-package": "^6.4.7",
  "postinstall-postinstall": "^2.1.0",
  "sass": "^1.32.8"
}

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions