Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cordovaProject.projectConfig.getFileResources is not a function

I'm having a deployment error when I'm trying to deploy my project to Android Emulator. The error says:

cordovaProject.projectConfig.getFileResources is not a function

I tried to search net and tried this solution here but still no luck. Can someone help me? Thanks!

PS: System Information

Visual Studio 2017 Version 15.5.7
Cordova-Android: 6.3.1
Cordova: 8.0.0
Gradle: 4.6
like image 257
Rich Avatar asked Mar 07 '18 05:03

Rich


1 Answers

This problem basically comes from outdated Cordova version. Please use the below methods to resolve that.

npm uninstall -g cordova
npm install -g cordova

Then remove your platforms folder and add it again with below command.

cordova platform add android --save
like image 163
Mohamed Azharuddin Avatar answered Sep 23 '22 07:09

Mohamed Azharuddin