ionic-cli: ionic cordova resources not working
Short description of the problem:
While running ionic cordova resources android
, the icons are not generated. Instead I’m getting the following error.
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date. ✖ Collecting resource configuration and source images - failed! Error: Source image files were not found for the following platforms/types:
I have updated ionic to the latest version and all the plugins are updated as well. I followed this documentation. Here is my package.json
file
{
"name": "my-app",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.2",
"@angular/compiler": "4.1.2",
"@angular/compiler-cli": "4.1.2",
"@angular/core": "4.1.2",
"@angular/forms": "4.1.2",
"@angular/http": "4.1.2",
"@angular/platform-browser": "4.1.2",
"@angular/platform-browser-dynamic": "4.1.2",
"@ionic-native/core": "3.10.2",
"@ionic-native/splash-screen": "3.10.2",
"@ionic-native/status-bar": "3.10.2",
"@ionic/cli-plugin-cordova": "^1.2.1",
"@ionic/storage": "2.0.1",
"cordova-android": "^6.2.3",
"cordova-plugin-console": "^1.0.5",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-statusbar": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.1",
"ionic-angular": "3.3.0",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.1.1",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.11"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.7",
"@ionic/cli-plugin-cordova": "1.2.1",
"@ionic/cli-plugin-ionic-angular": "1.2.0",
"typescript": "2.3.3"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-console": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-whitelist": {},
"ionic-plugin-keyboard": {}
},
"platforms": [
"android"
]
}
}
** The output of ionic info
is as follows**
global packages:
@ionic/cli-utils : 1.2.0
Cordova CLI : 7.0.1
Ionic CLI : 3.2.0
local packages:
@ionic/app-scripts : 1.3.7
@ionic/cli-plugin-cordova : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.3.0
System:
Node : v6.6.0
OS : macOS Sierra
Xcode : Xcode 8.0 Build version 8A218a
ios-deploy : 1.8.4
ios-sim : 5.0.2
Kindly share some pointers on the same.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 21 (6 by maintainers)
Links to this issue
Commits related to this issue
- fix(cordova): actually show platform/type of missing resources Addresses https://github.com/ionic-team/ionic-cli/issues/2355 — committed to ionic-team/ionic-cli by imhoffd 7 years ago
Ah my problem was something stupid on my part. The resources directory only contained empty folders. Downloading this repo and replacing the resources directory then running ionic cordova resources solved my issue.
‘ionic cordova resources’ command is not working! it asks for a login but i cant login my account through CLI?
Facing a similar issue while trying to build for platform android
package.json
ionic info:
I have the exact same problem right now. I am running
ionic cordova resources
and receiving this outputRunning
ionic cordova resources --verbose
shows this:My
ionic info