vosk-flutter icon indicating copy to clipboard operation
vosk-flutter copied to clipboard

Incorrect package="org.vosk.vosk_flutter" found in source AndroidManifest.xml

Open alibad opened this issue 11 months ago • 3 comments

I am getting this error when trying to run on Android. I also had to override dependencies for "flutter pub get" to run.

dependency_overrides:
  permission_handler: ^11.3.1
  http: ^1.2.2

Here is the error:

> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
   > Incorrect package="org.vosk.vosk_flutter" found in source AndroidManifest.xml: /Users/alibadereddin/.pub-cache/hosted/pub.dev/vosk_flutter-0.3.48/android/src/main/AndroidManifest.xml.
     Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
     Recommendation: remove package="org.vosk.vosk_flutter" from the source AndroidManifest.xml: /Users/alibadereddin/.pub-cache/hosted/pub.dev/vosk_flutter-0.3.48/android/src/main/AndroidManifest.xml.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 5s
Error: Gradle task assembleDebug failed with exit code 1

Any recommendations how to fix it?

alibad avatar Nov 24 '24 22:11 alibad