Ionic-native: Can't resolve all parameters for MediaObject: (?) Android 7.0

Created on 19 Apr 2017  路  2Comments  路  Source: ionic-team/ionic-native

I get this error whenever media plugin is used:
"Uncaught Error: Can't resolve all parameters for MediaObject: (?).", source: file:///android_asset/www/build/main.js (93297)

"ionic-angular": "3.0.1",
"@ionic-native/media": "^3.5.0",
cordova-plugin-media@latest
cordova platform android@latest
android 7.0

Tested with ionic 3 media plugin doc example code.

Most helpful comment

I found out I should not add MediaObject in Providers in app.module.ts

All 2 comments

I found out I should not add MediaObject in Providers in app.module.ts

do you only need the MediaPlugin to get the plugin working?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mateo666 picture mateo666  路  3Comments

icchio picture icchio  路  3Comments

FdezRomero picture FdezRomero  路  4Comments

goleary picture goleary  路  3Comments

kyleap picture kyleap  路  4Comments