Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 下编译安装出现问题 #2

Open
59799517 opened this issue Aug 15, 2023 · 2 comments
Open

windows 下编译安装出现问题 #2

59799517 opened this issue Aug 15, 2023 · 2 comments

Comments

@59799517
Copy link

No description provided.

@59799517
Copy link
Author

59799517 commented Aug 15, 2023

其他功能都可以正常使用就是在播放的时候出现问题:
启动时候 好像sqlite 好像无法正确的创建 错误消息如下:

flutter: err is 👉 Bad state: databaseFactory not initialized
databaseFactory is only initialized when using sqflite. When using `sqflite_common_ffi`
You must call `databaseFactory = databaseFactoryFfi;` before using global openDatabase API

在第一个错误出现时候修改过数据库的初始化好像没啥作用
image

在点击歌曲进行播放时出现 :

[just_audio_windows] Broadcast event error: 不支持此接口
[just_audio_windows][just_audio_windows] Broadcast event error: 不支持此接口
[just_audio_windows] Broadcast event error: 不支持此接口 Broadcast event error: 不支持此接口

这个错误

@59799517 59799517 changed the title windows windows 下编译安装出现问题 Aug 16, 2023
@wellmoonloft
Copy link
Owner

You must call databaseFactory = databaseFactoryFfi; before using global openDatabase API

抱歉我很久没关注这个了,看起来是just_audio_windows这边的配置问题,我记得当时在just_audio_windows里面有说明使用顺序和just_audio是不同的,你可以直接去看一下按照他的配置来进行修改即可,因为我没有windows的电脑所以爱莫能助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants