jonasbark / flutter_stripe_payment

[DISCONTINUED] A flutter plugin with stripe payment plugin integration
MIT License
307 stars 243 forks source link

conflict with flutter_barcode_scanner #190

Open vsnappy1 opened 3 years ago

vsnappy1 commented 3 years ago

PS D:\Projects\FrelanceWork\iMenuStripe\iMenu> flutter run
Launching lib\main.dart on SM G610F in debug mode... Running Gradle task 'assembleDebug'...
D:\Projects\FrelanceWork\iMenuStripe\iMenu\android\app\src\debug\AndroidManifest.xml:17:9-59 Error: Attribute application@theme value=(@style/Theme.AppCompat.NoActionBar) from [:flutter_barcode_scanner] AndroidManifest.xml:17:9-59
is also present at [:stripe_payment] AndroidManifest.xml:11:18-74 value=(@style/Theme.AppCompat.Light.NoActionBar). Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest.xml:8:5-51:19 to override.

FAILURE: Build failed with an exception.

BUILD FAILED in 2m 1s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 123.0s (!) Exception: Gradle task assembleDebug failed with exit code 1 PS D:\Projects\FrelanceWork\iMenuStripe\iMenu>

vsnappy1 commented 3 years ago

This error occurs when

stripe_payment: ^1.0.7 & flutter_barcode_scanner: ^1.0.1 both are present in pubspec.yaml

if i remove any one of them error disappears

alexkarpen commented 3 years ago

In case you are still there..

  1. Add xmlns:tools="http://schemas.android.com/tools" in manifest tag
  2. Add tools:replace="android:theme" and android:theme="@style/AppTheme" in application tag.

credits to fabioselau077