Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

show error when build flutter project for andoid release #239

Open
kondori-reza1990 opened this issue Apr 11, 2024 · 0 comments
Open

show error when build flutter project for andoid release #239

kondori-reza1990 opened this issue Apr 11, 2024 · 0 comments
Labels
question Further information is requested

Comments

@kondori-reza1990
Copy link

kondori-reza1990 commented Apr 11, 2024

Hi I use in-app-payment-flutter dependency in my project and worked.
but after update compileSdkVersion to 34 can not build and show error.
please help me.

Error:

C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\java\sqip\flutter\internal\CardEntryModule.java:41: error: cannot find symbol
import sqip.flutter.R;
^
symbol: class R
location: package sqip.flutter
C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\java\sqip\flutter\internal\ErrorHandlerUtils.java:20: error: cannot find symbol
import sqip.flutter.R;
^
symbol: class R
location: package sqip.flutter
C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\java\sqip\flutter\internal\CardEntryModule.java:281: error: package R does not exist
theme.applyStyle(R.style.sqip_Theme_CardEntry, true);
^
C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\java\sqip\flutter\internal\ErrorHandlerUtils.java:26: error: package R does not exist
return String.format(String.valueOf(R.string.sqip_flutter_developer_error_message), pluginErrorCode);
^
Note: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\android\src\main\java\sqip\flutter\internal\GooglePayModule.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Alipour\AppData\Local\Pub\Cache\hosted\pub.dev\square_in_app_payments-1.7.8\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:compileReleaseJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • Try:

Run with --info option to get more log output.
Run with --scan to get full insights.

@kondori-reza1990 kondori-reza1990 added the question Further information is requested label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant