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

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

Open
alibad opened this issue Nov 24, 2024 · 3 comments

Comments

@alibad
Copy link

alibad commented Nov 24, 2024

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
Copy link
Author

alibad commented Dec 5, 2024

@nshmyrev @EvgeniyVabishchevich @sergsavchuk @varunpandey0502 any idea what's happening here?

@alibad
Copy link
Author

alibad commented Dec 6, 2024

@nshmyrev super thank you for the hint.

I removed "package" property from
~/.pub-cache/hosted/pub.dev/vosk_flutter-0.3.48/android/src/main/AndroidManifest.xml

And that resolved the issue.

I'm guessing, this should be done every time flutter pub get is run and taken care of in CI/CD pipeline?

Why not update this library to use new syntax, or am I missing something here?

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

No branches or pull requests

2 participants