5

I recently updated my Ionic CLI version to 2.0.0-alpha.18 and since then whenever I try to build out my app using Ionic build android, when I run the apk on my device I get this error message:

Failed to load resource file:///android_asset/www/cordova_plugins.js

other info: Cordova CLI: 5.4.0 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.1.0 Ionic CLI Version: 2.0.0-alpha.18 Ionic App Lib Version: 2.0.0-alpha.17 OS: Windows 8.1 Node Version: v0.12.7

Anyone else have this problem?

Pete Houston
  • 14,931
  • 6
  • 47
  • 60
user3407300
  • 419
  • 1
  • 5
  • 12

2 Answers2

8

I think I fixed the problem. I had to run: ionic platform remove android and then ionic platform add android and then the build worked

user3407300
  • 419
  • 1
  • 5
  • 12
1

try ionic state reset. this should restore the plugins and platforms.

jovani
  • 669
  • 8
  • 16