You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m encountering an issue while building my Flutter project with the square_in_app_payments plugin (version 1.7.9). The build fails with the following error:
What went wrong:
A problem occurred configuring project ':square_in_app_payments'.
> Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
> Namespace not specified. Specify a namespace in the module's build file: /Users/arley/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.9/android/build.gradle. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.
To Reproduce
1. Create a New Flutter Project: Open Android Studio (version 2024.2), and create a new Flutter project by selecting “New Flutter Project” from the “File” menu. Follow the setup wizard and configure your project as needed.
2. Add the Dependency: After creating the project, navigate to the project directory and run the following command to add the square_in_app_payments package:
flutter pub add square_in_app_payments
3. Build the APK: Once the dependency is added, build the project by running:
Here the piece of code that reproduce the issue.
flutter build apk
Expected behavior
Build the apk
Environment (please complete the following information):
[✓] Flutter (Channel master, 3.27.0-1.0.pre.375, on macOS 15.1.1 24B91 darwin-arm64, locale en-CL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.95.3)
[✓] Connected device (3 available)
square_in_app_payments plugin (version 1.7.9)
➜ sport_social_app flutter doctor -v
[✓] Flutter (Channel master, 3.27.0-1.0.pre.375, on macOS 15.1.1 24B91 darwin-arm64, locale en-CL)
• Flutter version 3.27.0-1.0.pre.375 on channel master at /Users/arley/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 04d3d1a4c3 (3 weeks ago), 2024-11-05 08:49:42 -0800
• Engine revision f56401062e
• Dart version 3.7.0 (build 3.7.0-103.0.dev)
• DevTools version 2.40.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/arley/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] VS Code (version 1.95.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.100.0
[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1.1 24B91 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.86
! Error: Browsing on the local area network for Arley Mauricio’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
Describe the issue
Hi everyone,
I’m encountering an issue while building my Flutter project with the square_in_app_payments plugin (version 1.7.9). The build fails with the following error:
To Reproduce
Here the piece of code that reproduce the issue.
Expected behavior
Build the apk
Environment (please complete the following information):
[✓] Flutter (Channel master, 3.27.0-1.0.pre.375, on macOS 15.1.1 24B91 darwin-arm64, locale en-CL)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.2)
[✓] VS Code (version 1.95.3)
[✓] Connected device (3 available)
square_in_app_payments plugin (version 1.7.9)
➜ sport_social_app flutter doctor -v
[✓] Flutter (Channel master, 3.27.0-1.0.pre.375, on macOS 15.1.1 24B91 darwin-arm64, locale en-CL)
• Flutter version 3.27.0-1.0.pre.375 on channel master at /Users/arley/Documents/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 04d3d1a4c3 (3 weeks ago), 2024-11-05 08:49:42 -0800
• Engine revision f56401062e
• Dart version 3.7.0 (build 3.7.0-103.0.dev)
• DevTools version 2.40.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/arley/Library/Android/sdk
• Platform android-35, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16B40
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.3+-79915917-b509.11)
[✓] VS Code (version 1.95.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.100.0
[✓] Connected device (3 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 15.1.1 24B91 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.1.1 24B91 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 131.0.6778.86
! Error: Browsing on the local area network for Arley Mauricio’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the
same local area network as this Mac.
The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources
• All expected network resources are available.
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: