I am getting this issue while being at latest flutter version and pkg version too.
Here is the log:
/Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/internal/CardEntryModule.java:73: error: cannot find symbol public CardEntryModule(PluginRegistry.Registrar registrar, final MethodChannel channel) { ^ symbol: class Registrar location: interface PluginRegistry /Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/internal/GooglePayModule.java:59: error: cannot find symbol public GooglePayModule(PluginRegistry.Registrar registrar, final MethodChannel channel) { ^ symbol: class Registrar location: interface PluginRegistry /Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/SquareInAppPaymentsFlutterPlugin.java:39: error: cannot find symbol public static void registerWith(io.flutter.plugin.common.PluginRegistry.Registrar registrar) { ^ symbol: class Registrar location: interface PluginRegistry /Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/SquareInAppPaymentsFlutterPlugin.java:45: error: cannot find symbol private SquareInAppPaymentsFlutterPlugin(io.flutter.plugin.common.PluginRegistry.Registrar registrar) { ^ symbol: class Registrar location: interface PluginRegistry Note: /Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/internal/GooglePayModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/samamamajeed/.pub-cache/hosted/pub.dev/square_in_app_payments-1.7.10/android/src/main/java/sqip/flutter/internal/CardEntryModule.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 4 errors
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':square_in_app_payments:compileDebugJavaWithJavac'.