abdelaziz-mahdy / flutter_meedu_videoplayer

Cross-Platform Video Player for flutter
https://abdelaziz-mahdy.github.io/flutter_meedu_videoplayer/
MIT License
132 stars 69 forks source link

Getting error while run in flutter 3.10.5 #147

Closed sanjayajena37 closed 11 months ago

sanjayajena37 commented 11 months ago

Error: Error when reading '/Users/username/.pub-cache/hosted/pub.dev/media_kit-1.1.0/lib/src/player/libmpv/core/native_library.dart': No such file or directory import 'package:media_kit/src/player/libmpv/core/native_library.dart';

image

Please help

flutter version : 3.10.5 meedu player: 4.2.16 media_kit : 1.1.0 media_kit :1.0.2

abdelaziz-mahdy commented 11 months ago

Please define the versions in pubspec, don't leave then undefined ...

And try again most probably the undefined is the problem

sanjayajena37 commented 11 months ago

I have tried using this above version still am facing same problem:

flutter version : 3.10.5 meedu player: 4.2.16 media_kit : 1.1.0 media_kit :1.0.2

abdelaziz-mahdy commented 11 months ago

Error: Error when reading '/Users/username/.pub-cache/hosted/pub.dev/media_kit-1.1.0/lib/src/player/libmpv/core/native_library.dart': No such file or directory import 'package:media_kit/src/player/libmpv/core/native_library.dart';

image

Please help

flutter version : 3.10.5 meedu player: 4.2.16 media_kit : 1.1.0 media_kit :1.0.2

Let's make a deal, here flutter can't find a media_kit file

So it's a problem from pub

As long as I don't have steps to reproduce it I can't help

And in the screenshot you don't define versions,

And in the text I see media_kit twice

So I am confused..

wxjrkm520 commented 11 months ago

same problem

wxjrkm520 commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe r/libmpv/core/native_library.dart':

wxjrkm520 commented 11 months ago

No libmpv folder

abdelaziz-mahdy commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

abdelaziz-mahdy commented 11 months ago

Can both of you test with

flutter_meedu_videoplayer: ^4.2.20
media_kit_libs_android_video: ^1.2.0 
media_kit_libs_ios_video: ^1.0.5

And show me the full error output,

And if there are steps to reproduce it on a new project that will help soo much

wxjrkm520 commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

Use the latest Flutter version Use the latest version of the package Solved the above issues

abdelaziz-mahdy commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

Use the latest Flutter version Use the latest version of the package Solved the above issues

Thank you for confirming.

sanjayajena37 commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe

r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

Use the latest Flutter version

Use the latest version of the package

Solved the above issues

Whats your flutter version? Am using 3.10.5 but not resolved yet

wxjrkm520 commented 11 months ago

Whats your flutter version? Am using 3.10.5> issues flutter:3.10.6 flutter_meedu_videoplayer: ^4.2.20 pub upgrade

abdelaziz-mahdy commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe

r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

Use the latest Flutter version

Use the latest version of the package

Solved the above issues

Whats your flutter version? Am using 3.10.5 but not resolved yet

Can you please share the pubspec where the error shows please.....

wxjrkm520 commented 11 months ago

/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit_video-1.0.2/lib/src/video_controller/native_video_controller/real.dart(17,8): error GFAA2A68C: Error when reading '/E:/PUB/Cache/hosted/pub.flutter-io.cn/media_kit-1.1.0/lib/src/playe

r/libmpv/core/native_library.dart':

Hello why using media_kit video 1.0.2?

Will check and let you know it should be 1.1.0

Can you use last version of this package and try again?

Use the latest Flutter version Use the latest version of the package Solved the above issues

Whats your flutter version? Am using 3.10.5 but not resolved yet

pub upgrade

This issue is caused by the low version of media_kit