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

Compilation issue when building #36

Open
francis-agencemxo opened this issue Jan 13, 2025 · 0 comments
Open

Compilation issue when building #36

francis-agencemxo opened this issue Jan 13, 2025 · 0 comments

Comments

@francis-agencemxo
Copy link

Describe the bug
Compilation error when building project using the package

To Reproduce
Steps to reproduce the behavior:

  1. Create a new react-native project : npx create-expo-app@latest
  2. Add android folder with expo prebuild : npx expo prebuild --platform android
  3. Compile project : npm run android
  4. Build Success
  5. add package to project : npm i @google/react-native-make-payment
  6. Compile project : npm run android
  7. Build FAILS

Expected behavior
Build should success after installing package

Desktop

  • OS: Ubuntu 22.04

Additional context

Error log :

Task :google_react-native-make-payment:compileDebugKotlin FAILED
e: file:///home/****/workspace/test-google-payment/node_modules/@google/react-native-make-payment/android/src/main/java/com/makepayment/MakePaymentModule.kt:99:32 Type mismatch: inferred type is Exception? but Throwable was expected

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':google_react-native-make-payment:compileDebugKotlin'.

A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant