momo-wallet / mobile-sdk

If your business have a mobile app. You can use this SDK to integrate your mobile with MoMo App
79 stars 54 forks source link

[React-Native] Android - build.gradle: could not find method compile() for arguments #75

Open tungxuan1656 opened 2 years ago

tungxuan1656 commented 2 years ago

Gặp lỗi khi build android "react-native": "0.68.2", "react-native-momosdk": "^1.4.3",

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 Note: /Users/tungxuan/Projects/ReactNative/tngo/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

BUILD FAILED in 18s

at makeError (/Users/tungxuan/Projects/ReactNative/tngo/node_modules/execa/index.js:174:9)
at /Users/tungxuan/Projects/ReactNative/tngo/node_modules/execa/index.js:278:16
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async runOnAllDevices (/Users/tungxuan/Projects/ReactNative/tngo/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/tungxuan/Projects/ReactNative/tngo/node_modules/@react-native-community/cli/build/index.js:192:9)

info Run CLI with --verbose flag for more details. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

tungxuan1656 commented 2 years ago

Do you have any updates?

nhhai1605 commented 1 year ago

I think you can just simply change the compile to implementation https://stackoverflow.com/a/66910991