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 in AndroidManifest after upgrade to AGP 8 #240

Open
kondori-reza1990 opened this issue Apr 17, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@kondori-reza1990
Copy link

Describe the issue

I updated my project to agp 8 and target sdk 34.

I'm trying to build apk and run my app in android but fail build and show below error:

Here is the log:

Incorrect package="sqip.flutter" found in source AndroidManifest.xml: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="sqip.flutter" from the source AndroidManifest.xml: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\AndroidManifest.xml.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':square_in_app_payments:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
 > Incorrect package="sqip.flutter" found in source AndroidManifest.xml: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\AndroidManifest.xml.
   Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
   Recommendation: remove package="sqip.flutter" from the source AndroidManifest.xml: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\AndroidManifest.xml.

Environment (please complete the following information):

  • platform: [Android]
  • OS and version: [Android]
  • dev environment: [Windows]
  • In-App Payments Plugin version: [1.7.8]
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.19.5, on Microsoft Windows [Version 10.0.22631.3447], locale en-US)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Enterprise 2022 17.0.0)
[√] Android Studio (version 2023.2)
[√] VS Code (version 1.88.1)
[√] Connected device (3 available)
[√] Network resources
@kondori-reza1990 kondori-reza1990 added the bug Something isn't working label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant