-
-
Notifications
You must be signed in to change notification settings - Fork 399
Description
The package https://pub.dev/packages/razorpay_flutter contains fluttertoast dependencies, which I do not use directly. Getting the following problems in that
e: file:///Users/builder/.pub-cache/hosted/pub.dev/fluttertoast-8.2.8/android/src/main/kotlin/io/github/ponnamkarthik/toast/fluttertoast/FlutterToastPlugin.kt:9:48 Unresolved reference 'Registrar'.
e: file:///Users/builder/.pub-cache/hosted/pub.dev/fluttertoast-8.2.8/android/src/main/kotlin/io/github/ponnamkarthik/toast/fluttertoast/MethodCallHandlerImpl.kt:18:24 Unresolved reference 'FlutterMain'.
e: file:///Users/builder/.pub-cache/hosted/pub.dev/fluttertoast-8.2.8/android/src/main/kotlin/io/github/ponnamkarthik/toast/fluttertoast/MethodCallHandlerImpl.kt:74:35 Unresolved reference 'FlutterMain'.
e: file:///Users/builder/.pub-cache/hosted/pub.dev/fluttertoast-8.2.8/android/src/main/kotlin/io/github/ponnamkarthik/toast/fluttertoast/MethodCallHandlerImpl.kt:90:39 Unresolved reference 'FlutterMain'.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':fluttertoast:compileReleaseKotlin'.
A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
**In https://github.com/ponnamkarthik/FlutterToast/pull/542 , I attempted your change below.
Having problems with the Razorpay package, the logs are supplied below.**
"Install Android SDK Platform 34 (revision 3)" finished.
/Users/builder/.pub-cache/hosted/pub.dev/razorpay_flutter-1.3.7/android/src/main/java/com/razorpay/razorpay_flutter/RazorpayFlutterPlugin.java:18: error: cannot find symbol
import io.flutter.plugin.common.PluginRegistry.Registrar;
^
symbol: class Registrar
location: interface PluginRegistry
/Users/builder/.pub-cache/hosted/pub.dev/razorpay_flutter-1.3.7/android/src/main/java/com/razorpay/razorpay_flutter/RazorpayFlutterPlugin.java:36: error: cannot find symbol
public static void registerWith(Registrar registrar) {
^
symbol: class Registrar
location: class RazorpayFlutterPlugin
/Users/builder/.pub-cache/hosted/pub.dev/razorpay_flutter-1.3.7/android/src/main/java/com/razorpay/razorpay_flutter/RazorpayFlutterPlugin.java:56: error: cannot find symbol
private RazorpayFlutterPlugin(Registrar registrar) {
^
symbol: class Registrar
location: class RazorpayFlutterPlugin
Note: /Users/builder/.pub-cache/hosted/pub.dev/razorpay_flutter-1.3.7/android/src/main/java/com/razorpay/razorpay_flutter/RazorpayDelegate.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':razorpay_flutter:compileReleaseJavaWithJavac'.
Compilation failed; see the compiler error output for details.