in-app-payments-flutter-plugin icon indicating copy to clipboard operation
in-app-payments-flutter-plugin copied to clipboard

Incorrect package in AndroidManifest after upgrade to AGP 8

Open kondori-reza1990 opened this issue 2 years ago • 2 comments

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 avatar Apr 17 '24 19:04 kondori-reza1990

LGTM?

pauljonescodes avatar Sep 22 '24 22:09 pauljonescodes

Same here :(

fcanacmarquis avatar Sep 30 '24 22:09 fcanacmarquis

Has anyone solved this problem?

rin1652 avatar Nov 09 '24 09:11 rin1652

Not available in release. 1.7.9

Sergiyss avatar Jan 28 '25 13:01 Sergiyss

Hi,

This package seams to be abandoned as no version has been released since 7 months. I suggest everyone write to Square to see what they can do. Since blocking us to gradle 7 will eventually break our apps and prevent getting the newest packages and security. Please drop a line to Square.

Thanks.

fcanacmarquis avatar Jan 28 '25 15:01 fcanacmarquis

Resolved in IAP SDK 1.7.10

shauna-kimura avatar Jan 28 '25 18:01 shauna-kimura