Description
Issue Description
In a new typescript project Hello World when I make ns build android I got an error:
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':compileReleaseJavaWithJavac'.
Could not determine the dependencies of null.
Cannot query the value of this provider because it has no value available.
ns doctor:
No issues were detected.
✔ Your ANDROID_HOME environment variable is set and points to correct directory.
✔ Your adb from the Android SDK is correctly installed.
✔ The Android SDK is installed.
✔ A compatible Android SDK for compilation is found.
✔ Javac is installed and is configured properly.
✔ The Java Development Kit (JDK) is installed and is configured properly.
✔ Xcode is installed and is configured properly.
✔ xcodeproj is installed and is configured properly.
✔ CocoaPods are installed.
✔ CocoaPods update is not required.
✔ CocoaPods are configured properly.
✔ Your current CocoaPods version is newer than 1.0.0.
✔ Python installed and configured correctly.
✔ Xcode version 16.2.0 satisfies minimum required version 10.
✔ Getting NativeScript components versions information...
✔ Component nativescript has 8.8.3 version and is up to date.
✔ Component @nativescript/core has 8.8.6 version and is up to date.
✖ Component @nativescript/ios is not installed.
✔ Component @nativescript/android has 8.8.6 version and is up to date.
Reproduction
No response
Relevant log output (if applicable)
ns build android
Preparing project...
asset vendor.js 6.8 MiB [compared for emit] (name: vendor) (id hint: defaultVendor)
asset bundle.js 365 KiB [compared for emit] (name: bundle)
asset runtime.js 11.5 KiB [compared for emit] (name: runtime)
asset tns_modules/inspector_modules.js 1.26 KiB [compared for emit] (name: tns_modules/inspector_modules)
Entrypoint bundle 7.16 MiB = runtime.js 11.5 KiB vendor.js 6.8 MiB bundle.js 365 KiB
Entrypoint tns_modules/inspector_modules 6.81 MiB = runtime.js 11.5 KiB vendor.js 6.8 MiB tns_modules/inspector_modules.js 1.26 KiB
orphan modules 20.9 KiB [orphan] 12 modules
runtime modules 2.46 KiB 7 modules
modules by path ./node_modules/@nativescript/ 1.6 MiB 212 modules
modules by path ./node_modules/css-tree/ 317 KiB 113 modules
modules by path ./app/ 131 KiB 7 modules
modules by path ./node_modules/source-map/lib/*.js 36.3 KiB 6 modules
modules by path ./node_modules/reduce-css-calc/dist/ 131 KiB 5 modules
modules by path ./node_modules/postcss-value-parser/lib/*.js 12.5 KiB 5 modules
modules by path ./node_modules/mdn-data/css/*.json 242 KiB
./node_modules/mdn-data/css/at-rules.json 11.6 KiB [built] [code generated]
+ 2 modules
modules by path ./node_modules/css-what/lib/es/*.js 17.3 KiB
./node_modules/css-what/lib/es/parse.js 16 KiB [built] [code generated]
./node_modules/css-what/lib/es/types.js 1.29 KiB [built] [code generated]
+ 5 modules
webpack 5.97.1 compiled successfully in 1352 ms
Webpack compilation complete.
~ applying user-defined configuration from /Users/someuser/AppDevelopment/nativescript/emotest2/App_Resources/Android/before-plugins.gradle
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':compileReleaseJavaWithJavac'.
> Could not determine the dependencies of null.
> Cannot query the value of this provider because it has no value available.
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 246ms
Failed to build plugin @nativescript/core :
Error: Command ./gradlew failed with exit code 1
Environment
OS: macOS 15.3
CPU: (14) arm64 Apple M4 Max
Shell: /bin/zsh
node: 23.7.0
npm: 10.9.2
nativescript: 8.8.3
# android
java: 17.0.14
ndk: Not Found
apis: Not Found
build_tools: Not Found
system_images: Not Found
# ios
xcode: 16.2/16C5032a
cocoapods: 1.16.2
python: Not Found
python3: 3.9.6
ruby: 3.3.7
platforms:
- DriverKit 24.2
- iOS 18.2
- macOS 15.2
- tvOS 18.2
- visionOS 2.2
- watchOS 11.2
Dependencies
"dependencies": {
"@nativescript/core": "~8.8.0",
"@nativescript/theme": "^3.1.0"
},
"devDependencies": {
"@nativescript/android": "8.8.6",
"@nativescript/types": "~8.8.0",
"@nativescript/webpack": "~5.0.0",
"typescript": "~5.4.0"
}
Please accept these terms
- I have searched the existing issues as well as StackOverflow and this has not been posted before
- This is a bug report
- I agree to follow this project's Code of Conduct