Error with WakelockPlusPlugin and VideoPlayer in FlutterFlow – Build Fails During Debug

Widgets & Design

I'm facing an issue in my FlutterFlow project when I use the video_player plugin. When I include the video player in the project, the build fails with an error related to the WakelockPlusPlugin. The error message specifically mentions that it cannot find the symbol for WakelockPlusPlugin, and the build fails with a compilation error. The error output states:

/Users/harikishore/Library/Application Support/io.flutterflow.prod.mac/vigo/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java:79: error: cannot find symbol

flutterEngine.getPlugins().add(new dev.fluttercommunity.plus.wakelock.WakelockPlusPlugin());

symbol: class WakelockPlusPlugin location: package dev.fluttercommunity.plus.wakelock

1 error

The build fails with the message Execution failed for task ':app:compileDebug JavaWithJavac'. However, when I remove the video_player plugin, the build works fine. Has anyone encountered this issue before or knows how to resolve it? Any guidance or suggestions would be greatly appreciated.

What have you tried so far?

So far, I have tried upgrading the build.gradle file, but the issue persists. I’ve also removed the video_player plugin, and the build works fine without it, which indicates that the problem might be related to the plugin's integration with the WakelockPlusPlugin. However, I haven't found a solution to resolve the conflict between the two plugins yet.

4o mini

Did you check FlutterFlow's Documentation for this topic?
No
2
5 replies