S.Ranjan Kr.
S.Ranjan Kr.

Reputation: 3

Plugin project :razorpay_flutter not found. Please update settings.gradle

Running Gradle task 'assembleDebug'... ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.4/lib/razorpay_flutter.dart:1:8: Error: Not found: 'dart:js' import 'dart:js';

  ^                                                                                                            ../../Downloads/flutter/.pub-cache/hosted/pub.dartlang.org/razorpay_flutter-1.2.4/lib/razorpay_flutter.dart:91:29:    Error: The getter 'context' isn't defined for the class 'Razorpay'.

Process 'command '/home/sranjan/Downloads/flutter/bin/flutter'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 3m 58s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done
241.1s (!) Exception: Gradle task assembleDebug failed with exit code 1

Upvotes: 0

Views: 668

Answers (1)

Deepak Lohmod
Deepak Lohmod

Reputation: 2282

I too was facing this issue just replace your razorpay plugin in pubspec.yaml file with

razorpay_flutter: 1.2.3

Upvotes: 1

Related Questions