Unable to ionic run android correctly, exec() call to unknown plugin: Console


#1

It happens to newly created ionic project
ionic start myApp sidemenu

ionic run ios work perfectly, but when I ionic run android

the below log keep repeating:
10-06 09:33:57.577 19411-19474/com.ionicframework.example D/PluginManager﹕ exec() call to unknown plugin: Console
10-06 09:33:57.577 19411-19411/com.ionicframework.example I/chromium﹕ [INFO:CONSOLE(173)] “No Content-Security-Policy meta tag found. Please add one when using the cordova-plugin-whitelist plugin.”, source: file:///android_asset/www/plugins/cordova-plugin-console/www/console-via-logger.js (173)

I did not change any of the code, the way to reproduce:

  • ionic start example sidemenu
  • ionic platform add android
  • ionic run android

I found that for android project,
cordova plugin console package/.java file is not added to the android project