razorpay / razorpay-flutter

Razorpay Flutter Plugin
MIT License
106 stars 147 forks source link

This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml. #330

Open karthiKN-sk opened 1 year ago

karthiKN-sk commented 1 year ago

5\android\src\main\kotlin\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.kt. This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. exit code 1

i get error after adding razorpay_flutter in my code

ramponkiya commented 1 year ago

The plugin razorpay_flutter doesn't have a main class defined in C:\Users\RAMKUMAR\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java or C:\Users\RAMKUMAR\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5\android\src\main\kotlin\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.kt. This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile.

i got this error anyone solution for this error

Pratip009 commented 1 year ago

any solution ? I am also getting the same error

ramponkiya commented 1 year ago

@Pratip009 down razorpay version and clear pub.dev cache for this path C:\Users\RAMKUMAR\AppData\Local\Pub\Cache\hosted\pub.dev

Pratip009 commented 1 year ago

thanks man!! it works!

VivekYadavDeveloper commented 1 year ago

But it didn't work for me.

Ajinas03 commented 1 year ago

This issue happened for me also, tried flutter clean , flutter pub get, flutter pub cache repair none of these solved the issue

ctujare commented 1 year ago

I am also gettting the same Error:::

The plugin razorpay_flutter doesn't have a main class defined in C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5\android\src\main\java\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.java or C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5\android\src\main\kotlin\com\razorpay\razorpay_flutter\RazorpayFlutterPlugin.kt. This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml. If you are the author of this plugin, fix the androidPackage entry or move the main class to any of locations used above. Otherwise, please contact the author of this plugin and consider using a different plugin in the meanwhile. exit code 1

Any idea of what the solution might be.??

rajeshreemistry commented 1 year ago

@Pratip009 down razorpay version and clear pub.dev cache for this path C:\Users\RAMKUMAR\AppData\Local\Pub\Cache\hosted\pub.dev

i also try this but didn't get resolved

Pratip009 commented 1 year ago

downgrade razorpay version . it will solve your problem

On Sat, 8 Jul, 2023, 9:38 am rajeshreemistry, @.***> wrote:

@Pratip009 https://github.com/Pratip009 down razorpay version and clear pub.dev cache for this path C:\Users\RAMKUMAR\AppData\Local\Pub\Cache\hosted\pub.dev

i also try this but didn't get resolved

— Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1626758825, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMQZTM3XTRC6W4AZRGM3PE3XPDMLNANCNFSM6AAAAAAYX2V4XQ . You are receiving this because you were mentioned.Message ID: @.***>

VivekYadavDeveloper commented 1 year ago

@Pratip009 i did but not working

VivekYadavInductus commented 1 year ago

DId Anyone get solution

Hasilt commented 1 year ago

Hi Razorpay Team, Please address this issue. I tried running the example app today - it's not running with latest flutter version.

VivekYadavInductus commented 1 year ago

Hi Razorpay Team, Please address this issue. I tried running the example app today - it's running with latest flutter version.

Okay Let Me Update to the Newer Version. After Update my flutter it shows Same Error

'''This is likely to due to an incorrect androidPackage: com.razorpay.razorpay_flutter or mainClass entry in the plugin's pubspec.yaml.

'''

ShaikKhalidPasha commented 1 year ago

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

ctujare commented 1 year ago

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

This worked for me..

ShaikKhalidPasha commented 1 year ago

👍

On Sun, 1 Oct 2023, 12:45 pm Anand Tujare, @.***> wrote:

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\ pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

This worked for me..

— Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1741986614, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDKO6NLU42MO54PKILTX5EJ7ZANCNFSM6AAAAAAYX2V4XQ . You are receiving this because you commented.Message ID: @.***>

VivekYadavInductus commented 1 year ago

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

After Deleted the file i got these erroe

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Building with Flutter multidex support enabled. ../../AppData/Local/Pub/Cache/hosted/pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'.

ShaikKhalidPasha commented 1 year ago

Run flutter clean and flutter Pub get in terminal..

On Thu, 5 Oct 2023, 12:43 pm Vivek Yadav Inductus, @.***> wrote:

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\ pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

After Deleted the file i got these erroe

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Building with Flutter multidex support enabled. ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'.

  • 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart').
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:83:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'.
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:84:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'.
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:132:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'.
  • 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart').
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:133:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'.
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:134:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'.
  • 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:144:18: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:157:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:161:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays([]); ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:441:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:442:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
  • 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. handleColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:186:20: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'.
  • 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart').
  • 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onTapDown: onTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:190:24: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'.
  • 'TapUpDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart').
  • 'TapDragUpDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onSingleTapUp: onSingleTapUp, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:195:26: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'.
  • 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart').
  • 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDoubleTapDown: onDoubleTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:196:31: Error: The argument type 'void Function(DragStartDetails)' can't be assigned to the parameter type 'void Function(TapDragStartDetails)?'.
  • 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
  • 'TapDragStartDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionStart: onDragSelectionStart, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:197:32: Error: The argument type 'void Function(DragStartDetails, DragUpdateDetails)' can't be assigned to the parameter type 'void Function(TapDragUpdateDetails)?'.
  • 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
  • 'DragUpdateDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
  • 'TapDragUpdateDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionUpdate: onDragSelectionUpdate, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:198:29: Error: The argument type 'void Function(DragEndDetails)' can't be assigned to the parameter type 'void Function(TapDragEndDetails)?'.
  • 'DragEndDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
  • 'TapDragEndDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionEnd: onDragSelectionEnd, ^

— Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1748223187, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDJICJC6WB6MNRSBN5TX5ZMZBAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGIZDGMJYG4 . You are receiving this because you commented.Message ID: @.***>

VivekYadavInductus commented 1 year ago

Run flutter clean and flutter Pub get in terminal.. On Thu, 5 Oct 2023, 12:43 pm Vivek Yadav Inductus, @.*> wrote: Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\ pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"... After Deleted the file i got these erroe Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Building with Flutter multidex support enabled. ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'. - 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart'). - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:83:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:84:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:132:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'. - 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart'). - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:133:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:134:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:144:18: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:157:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:161:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays([]); ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:441:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'. - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:442:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'. - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. handleColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:186:20: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'. - 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onTapDown: onTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:190:24: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'. - 'TapUpDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragUpDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onSingleTapUp: onSingleTapUp, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:195:26: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'. - 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDoubleTapDown: onDoubleTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:196:31: Error: The argument type 'void Function(DragStartDetails)' can't be assigned to the parameter type 'void Function(TapDragStartDetails)?'. - 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragStartDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionStart: onDragSelectionStart, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:197:32: Error: The argument type 'void Function(DragStartDetails, DragUpdateDetails)' can't be assigned to the parameter type 'void Function(TapDragUpdateDetails)?'. - 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'DragUpdateDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragUpdateDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionUpdate: onDragSelectionUpdate, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:198:29: Error: The argument type 'void Function(DragEndDetails)' can't be assigned to the parameter type 'void Function(TapDragEndDetails)?'. - 'DragEndDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragEndDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionEnd: onDragSelectionEnd, ^ — Reply to this email directly, view it on GitHub <#330 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDJICJC6WB6MNRSBN5TX5ZMZBAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGIZDGMJYG4 . You are receiving this because you commented.Message ID: *@.>

Not Working

ShaikKhalidPasha commented 1 year ago

It looks like you are facing a type mismatch error in your code. The onDragSelectionEnd property is expecting a function that takes a TapDragEndDetails argument, but you are providing a function that takes a DragEndDetails argument.

Here's how you might resolve it:

void yourFunction(TapDragEndDetails details) { // Your implementation here }

// ...

GestureDetectorBuilder( onDragSelectionEnd: yourFunction, // other properties )

Make sure that the function you provide for onDragSelectionEnd matches the expected signature, which is void Function(TapDragEndDetails)?. If you can share more code or context, I can provide more ........👍

On Thu, 5 Oct 2023, 1:25 pm Vivek Yadav Inductus, @.***> wrote:

Run flutter clean and flutter Pub get in terminal.. … <#m5193976155401500220> On Thu, 5 Oct 2023, 12:43 pm Vivek Yadav Inductus, @.*> wrote: Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\ pub.dev http://pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"... After Deleted the file i got these erroe Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... Running Gradle task 'assembleDebug'... Building with Flutter multidex support enabled. ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:82:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'. - 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart'). - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:83:58 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:83:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:84:54 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:84:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:132:55 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:132:55: Error: A value of type 'RenderObject?' can't be assigned to a variable of type 'AbstractNode?'. - 'RenderObject' is from 'package:flutter/src/rendering/object.dart' ('/C:/src/flutter/packages/flutter/lib/src/rendering/object.dart'). - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). final AbstractNode? targetParent = renderObject.parent; ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:133:58 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:133:58: Error: The method 'markNeedsPlacement' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsPlacement'. if (targetParent is RenderLayoutGrid) targetParent.markNeedsPlacement(); ^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:134:54 http://pub.dev/flutter_layout_grid-1.0.6/lib/src/widgets/placement.dart:134:54: Error: The method 'markNeedsLayout' isn't defined for the class 'AbstractNode?'. - 'AbstractNode' is from 'package:flutter/src/foundation/node.dart' ('/C:/src/flutter/packages/flutter/lib/src/foundation/node.dart'). Try correcting the name to the name of an existing method, or defining a method named 'markNeedsLayout'. if (targetParent is RenderObject) targetParent.markNeedsLayout(); ^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:144:18 http://pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:144:18: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:157:20 http://pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:157:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays( ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:161:20 http://pub.dev/chewie-1.0.0/lib/src/chewie_player.dart:161:20: Error: Member not found: 'SystemChrome.setEnabledSystemUIOverlays'. SystemChrome.setEnabledSystemUIOverlays([]); ^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:441:50 http://pub.dev/chewie-1.0.0/lib/src/material_controls.dart:441:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'. - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. playedColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/chewie-1.0.0/lib/src/material_controls.dart:442:50 http://pub.dev/chewie-1.0.0/lib/src/material_controls.dart:442:50: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'. - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('/C:/src/flutter/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'accentColor'. handleColor: Theme.of(context).accentColor, ^^^^^^^^^^^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:186:20 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:186:20: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'. - 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onTapDown: onTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:190:24 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:190:24: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'. - 'TapUpDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragUpDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onSingleTapUp: onSingleTapUp, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:195:26 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:195:26: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'. - 'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/tap.dart'). - 'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDoubleTapDown: onDoubleTapDown, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:196:31 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:196:31: Error: The argument type 'void Function(DragStartDetails)' can't be assigned to the parameter type 'void Function(TapDragStartDetails)?'. - 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragStartDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionStart: onDragSelectionStart, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:197:32 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:197:32: Error: The argument type 'void Function(DragStartDetails, DragUpdateDetails)' can't be assigned to the parameter type 'void Function(TapDragUpdateDetails)?'. - 'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'DragUpdateDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragUpdateDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionUpdate: onDragSelectionUpdate, ^ ../../AppData/Local/Pub/Cache/hosted/ pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:198:29 http://pub.dev/flutter_math_fork-0.5.0/lib/src/widgets/selection/gesture_detector_builder.dart:198:29: Error: The argument type 'void Function(DragEndDetails)' can't be assigned to the parameter type 'void Function(TapDragEndDetails)?'. - 'DragEndDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('/C:/src/flutter/packages/flutter/lib/src/gestures/drag_details.dart'). - 'TapDragEndDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart'). onDragSelectionEnd: onDragSelectionEnd, ^ — Reply to this email directly, view it on GitHub <#330 (comment) https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1748223187>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDJICJC6WB6MNRSBN5TX5ZMZBAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGIZDGMJYG4 https://github.com/notifications/unsubscribe-auth/AWTHRDJICJC6WB6MNRSBN5TX5ZMZBAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGIZDGMJYG4 . You are receiving this because you commented.Message ID: @.*>

Not Working

— Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1748315185, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDNIZXU23GYVK5XELZTX5ZRYRAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGMYTKMJYGU . You are receiving this because you commented.Message ID: @.***>

VivekYadavInductus commented 1 year ago

GestureDetectorBuilde

Their is No function like this we used in application. This Error Shown After Deleting Razorpay Cache

ShaikKhalidPasha commented 1 year ago

Their is No function like this we used in application. This Error Shown

After Deleting Razorpay Cache

I told to delete only Razorpay_flutter 1.3.5 file not cache folder..

Pls check Razorpay_flutter 1.3.5 file available in this location C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev..

Reply to this email directly, view it on GitHub https://github.com/razorpay/razorpay-flutter/issues/330#issuecomment-1748360283, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDO5WLAM5GEQ7VZVXOTX5ZVCHAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGM3DAMRYGM . You are receiving this because you commented.Message ID: @.***>

VivekYadavInductus commented 1 year ago

Their is No function like this we used in application. This Error Shown After Deleting Razorpay Cache I told to delete only Razorpay_flutter 1.3.5 file not cache folder.. Pls check Razorpay_flutter 1.3.5 file available in this location C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev.. — Reply to this email directly, view it on GitHub <#330 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWTHRDO5WLAM5GEQ7VZVXOTX5ZVCHAVCNFSM6AAAAAAYX2V4XSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGM3DAMRYGM . You are receiving this because you commented.Message ID: @.***>

I deleted Razorpay file and .cache folder in pub.dev

C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev..

Yess Available

VivekYadavInductus commented 12 months ago

Step 1. Go into this path C:\Users\Admin\AppData\Local\Pub\Cache\hosted\pub.dev\razorpay_flutter-1.3.5 AND delete this folder "razorpay_flutter-1 3.5" Step 2. In terminal run command "Flutter clean" and "flutter Pub get"...

This worked for me..

Hello Sir Can You Please Help Me

irfan2520 commented 5 months ago

Checked the import statement: Ensured that I have imported the razorpay_flutter package correctly in my Dart file. The import statement should be something like import 'package:razorpay_flutter/razorpay_flutter.dart';. If there is an error in the import statement, it can cause the "main class not defined" error.