Encountering a failure in the NativeScript 2.0 [1.7.1] build specifically at the 'processF0DebugResources' stage when including gulp dependencies in the 'devDependencies' section

Encountering a build failure with NativeScript 2.0 (using NativeScript-Angular) when gulp related dependencies are added to the 'devDependencies' section and running [tns build android]. The error occurs at 'processF0DebugResources' and has been persistent since version 1.7.1. I was hopeful that the issue would be resolved in version 2.0, but it seems like the devDependencies are being built as well.

Attempting gradlew -debug did not show any errors, and no .apk file is generated when this particular error arises.

The specific exception received:

:processF0DebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong: Execution failed for task ':processF0DebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process ' command 'C:\Android\android-sdk\build-tools\23.0.3\aapt.exe'' finished with non-zero exit value 1

This is my package.json configuration:

    "dependencies": {
    "tns-core-modules": "2.0.0",
    "nativescript-angular": "0.0.46",
    "angular2": "2.0.0-beta.16",
    "nativescript-intl": "0.0.2",
    "parse5": "1.4.2",
    "punycode": "1.3.2",
    "querystring": "0.2.0",
    "url": "0.10.3",
    "reflect-metadata": "0.1.2",
    "rxjs": "5.0.0-beta.2",
    "zone.js": "0.6.12",
    "es6-shim": "0.35.0"
},
"devDependencies": {
    "babel-traverse": "6.8.0",
    "babel-types": "6.8.1",
    "babylon": "6.8.0",
    "filewalker": "0.1.2",
    "gulp": "3.9.1",
    "gulp-connect": "^4.0.0",
    "gulp-typescript": "^2.13.0",
    "gulp-watch": "^4.3.5",
    "lazy": "1.0.11",
    "nativescript-dev-typescript": "^0.3.1",
    "run-sequence": "^1.1.5",
    "typescript": "^1.8.10"
}

Answer №1

Issue Resolved!

By changing from using npm install to tns install, all the necessary development dependencies were installed properly and my application was deployed without any issues.

A special thanks to Hristo Deshev for his valuable assistance in resolving this matter.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The challenge of generics in Typescript: destructuring and spreading

I am facing an issue with destructing parameters and creating a new object of the same type in Typescript. The following code functions properly: function customFunc<T extends { attribute: string }>(parameter: T): T { const { ...rest } = paramete ...

Persistent Ionic tabs after user logs out - keeping tabs active post-logout

My Ionic app features tabs and authentication. While the authentication process works perfectly, I am facing an issue with the tabs still displaying after logging out. Below is my login method: this.authProvider.loginUser(email, password).then( auth ...

Issue occurred when trying to load controllers during the migration process from AngularJS1 to Angular6

Currently, I am in the process of upgrading AngularJS1 components to Angular6. My strategy involves creating wrappers for all existing AngularJS1 components by extending "UpgradeComponent" and storing them under the folder "directive-wrappers". However, wh ...

Failed to build development environment: Unable to assign the attribute 'fileSystem' to a null value

I'm attempting to launch an Ionic 2 Application, but I keep encountering this error when running ionic serve Error - build dev failed: Unable to assign a value to the 'fileSystem' property of object null Here is the complete log: λ ion ...

Does [email protected] come with the AOT Compilation enabled by default?

Is AOT Compilation the default setting for [email protected] and angular/[email protected] ? We are in the process of migrating our apps today, and I'm unsure if the documentation is still up to date: https://angular.io/docs/ts/latest/cookbo ...

Stop openapi-generator from altering enum names in JavaScript/TypeScript

We have implemented the openapi generator to create our REST client and it has been quite effective. However, we encountered an issue when using enums in the format UPERCASE_UNDERSCORE, as it ended up removing the underscores which caused inconvenience. Th ...

Encountering an error message that states "Unable to read property 'next' of undefined" while utilizing the async

Operating a service similar to this involves simulating an API call. import { Injectable } from '@angular/core'; import { Observable, Subscriber} from 'rxjs'; import { DeviceStatus } from '../models/device-status-model'; @I ...

Exploring the functionalities of TypeScript's mapKey and pick features

I am looking to convert the JavaScript code shown below into TypeScript, but I don't want to use loadish.js. let claimNames = _.filter<string>(_.keys(decodedToken), o => o.startsWith(ns) ); let claims = <any>( _.mapKeys(_ ...

How to disable animation dynamically in Angular during runtime

When I launch the application, I know I can utilize BrowserAnimationModule and NoopAnimationsModule. In the event that a user requests to disable animations for ADA compliance and other reasons, what is the best approach to turn off animations at runtime ...

Encountering a dependency issue when attempting to include an additional component in Angular

Upon attempting to add a new package, I encountered an error message that I am unsure how to resolve. I have updated Angular and the necessary packages, but still cannot figure out how to fix this broken dependency issue. Any guidance on resolving this E ...

How can you connect a property to the output of a method in Vue.js when working with TypeScript and vue-property-decorator?

I'm working with a TypeScript single file vue component. I've encountered an issue where the template does not display the values returned by certain component methods. Here's a snippet of the template: <div class="order-items"> ...

Edge Runtime does not permit the use of Dynamic Code Evaluation functions such as 'eval', 'new Function', and 'WebAssembly.compile'

My project involves the implementation of NextUI components. I incorporated the Select component from NextUI, and during development mode, everything functioned flawlessly. However, upon completion of development and attempting to build the project, I enc ...

Vetur is experiencing issues with template functionality, such as not properly checking data and methods

I have incorporated the vetur extension into my Visual Studio Code for a Vue project using TypeScript. I recently discovered that vetur has the capability to perform type checks within the template tag for props, methods, and even variables. However, in ...

What is the best way to refresh the script located within the head tag of an index.html file in an Angular

I've been looking for solutions, but I can't seem to find one. In my index.html file, I've placed some script within the head tag (even above the </body> tag) and included a $(document).ready function. The issue I'm facing is th ...

Guide on storing user input data in an array

HTML: <span *ngFor="let cust of customs"> <div class="custominfobackground col-sm-12"> <input type="email" id="widget-subscribe-form-email" name="cust{{$index}}" class="form-control required email" [formControl]="form.controls[&apos ...

Unusual Behavior of Observable.concat() in Angular 4 with RxJS 5

My Angular 4 / TypeScript 2.3 service has a method called build() that throws an error if a certain property is not initialized. I am attempting to create a safer alternative called safeBuild() that will return an Observable and wait for the property to be ...

There was a TypeScript error found at line 313, character 9 in the file @mui/material/styles/experimental_extendTheme.d

Encountering Typescript error while using Material UI component for date range picker Link - https://mui.com/x/react-date-pickers/date-range-picker/ Snippet of the code import * as React from 'react'; import { Dayjs } from 'dayjs'; im ...

When running the command "NPM start" in Gulp, you may encounter a situation where a blank page appears with the error message: "Cannot GET /"

I've been following a comprehensive tutorial on setting up a new desktop app using Angular2, Bootstrap, Yeoman, and Gulp. However, I encounter an issue when trying to test the code locally after reaching the frontend task section. Every time I run np ...

Dimension of the viewport in an angular mobile application

As I dive into learning Angular 2 (now Angular) with hopes of creating a mobile app, I find myself wondering about the optimal size to ensure it fits properly on smartphones. Is it recommended to use a 16:9 size, or is there a standard size to follow? I ...

Accessing lifecycle methods for React components in TypeScript as a member

Utilizing the typescript react starter for tsx-driven react implementations requires specifying member access (public, private, protected) for any method utilized within a class component. This requirement stems from, I believe, the tslint.json file. Can ...