MetaMask / metamask-mobile

Mobile web browser providing access to websites that use the Ethereum blockchain
https://metamask.io
Other
2.04k stars 1.06k forks source link

i am unable to run the clone #6630

Open usama-ammag opened 1 year ago

usama-ammag commented 1 year ago

i am having this issue please help me. Simple AwesomeProject is working fine. But metamask clone is not Here is logs.

apple@192 metamask-mobile % yarn start:android
yarn run v1.22.19 $ ./scripts/build.sh android debug


🚀 BUILDING ANDROID IN DEBUG MODE


Configure project :@react-native-community_blur WARNING:: The option setting 'android.disableResourceValidation=true' is experimental. The current default is 'false'. WARNING:: The option setting 'android.enableDexingArtifactTransform.desugaring=false' is experimental. The current default is 'true'.

Configure project :exodus_react-native-payments WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :lottie-react-native publishNonDefault is deprecated and has no effect anymore. All variants are now published.

Configure project :react-native-aes-crypto-forked WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-minimizer

Configure project :react-native-os WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-reanimated No AAR for react-native-reanimated found. Attempting to build from source. Android gradle plugin: 4.2.2 Gradle: 6.9 WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :ReactAndroid:buildReactNdkLib FAILED make: Entering directory '/Users/apple/Desktop/React Native /metamask-mobile/node_modules/react-native/ReactAndroid/src/main/jni/react/jni' Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16.
Android NDK: NDK_PROJECT_PATH==null. Please explicitly set APP_BUILD_SCRIPT.
make: Leaving directory '/Users/apple/Desktop/React Native /metamask-mobile/node_modules/react-native/ReactAndroid/src/main/jni/react/jni'

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 22 actionable tasks: 8 executed, 14 up-to-date OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 fcntl(): Bad file descriptor /Users/apple/Library/Android/sdk/ndk/21.4.7075529/build/core/add-application.mk:95: *** Android NDK: Aborting. . Stop.

FAILURE: Build failed with an exception.

BUILD FAILED in 24s

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:installProdDebug -PreactNativeDevServerPort=8081 OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 fcntl(): Bad file descriptor /Users/apple/Library/Android/sdk/ndk/21.4.7075529/build/core/add-application.mk:95: *** Android NDK: Aborting. . Stop.

FAILURE: Build failed with an exception.

BUILD FAILED in 24s

at makeError (/Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:106:5)
at async Command.handleAction (/Users/apple/Desktop/React Native /metamask-mobile/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.

usama-ammag commented 1 year ago

i am having this issue please help me. Here is logs. apple@192 metamask-mobile % yarn start:android yarn run v1.22.19 $ ./scripts/build.sh android debug 🚀 BUILDING ANDROID IN DEBUG MODE

  • daemon not running; starting now at tcp:5037
  • daemon started successfully $ node ./scripts/metamask-bot-build-generate-static-assets 🔎 Detected 601 count in contract-map.json ✅ Images module generated at - /Users/apple/Desktop/React Native /metamask-mobile/app/images/static-logos.js ✅ Package JSON generated at - /Users/apple/Desktop/React Native /metamask-mobile/app/images/package.json ✅ Finished generating static logo assets! 🎉🎉 warn Package @metamask/eth-sig-util has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@metamask/eth-sig-util/package.json warn Package @walletconnect/se-sdk has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@walletconnect/se-sdk/package.json warn Package d3-shape has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/apple/Desktop/React Native /metamask-mobile/node_modules/d3-shape/package.json warn Package @cucumber/message-streams has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@cucumber/message-streams/package.json warn Package @cucumber/messages has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@cucumber/messages/package.json info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:5534) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) Jetifier found 2272 file(s) to forward-jetify. Using 4 workers... info JS server already running. info Installing the app...

Configure project :@react-native-community_blur WARNING:: The option setting 'android.disableResourceValidation=true' is experimental. The current default is 'false'. WARNING:: The option setting 'android.enableDexingArtifactTransform.desugaring=false' is experimental. The current default is 'true'.

Configure project :exodus_react-native-payments WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :lottie-react-native publishNonDefault is deprecated and has no effect anymore. All variants are now published.

Configure project :react-native-aes-crypto-forked WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-minimizer

Configure project :react-native-os WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

Configure project :react-native-reanimated No AAR for react-native-reanimated found. Attempting to build from source. Android gradle plugin: 4.2.2 Gradle: 6.9 WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :ReactAndroid:buildReactNdkLib FAILED make: Entering directory '/Users/apple/Desktop/React Native /metamask-mobile/node_modules/react-native/ReactAndroid/src/main/jni/react/jni' Android NDK: APP_PLATFORM not set. Defaulting to minimum supported version android-16. Android NDK: NDK_PROJECT_PATH==null. Please explicitly set APP_BUILD_SCRIPT. make: Leaving directory '/Users/apple/Desktop/React Native /metamask-mobile/node_modules/react-native/ReactAndroid/src/main/jni/react/jni'

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings 22 actionable tasks: 8 executed, 14 up-to-date OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 fcntl(): Bad file descriptor /Users/apple/Library/Android/sdk/ndk/21.4.7075529/build/core/add-application.mk:95: *** Android NDK: Aborting. . Stop. FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':ReactAndroid:buildReactNdkLib'.

Process 'command '/Users/apple/Library/Android/sdk/ndk/21.4.7075529/ndk-build'' finished with non-zero exit value 2

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 24s 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:installProdDebug -PreactNativeDevServerPort=8081 OpenJDK 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0 Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 fcntl(): Bad file descriptor /Users/apple/Library/Android/sdk/ndk/21.4.7075529/build/core/add-application.mk:95: *** Android NDK: Aborting. . Stop. FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':ReactAndroid:buildReactNdkLib'.

Process 'command '/Users/apple/Library/Android/sdk/ndk/21.4.7075529/ndk-build'' finished with non-zero exit value 2

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  • Get more help at https://help.gradle.org

BUILD FAILED in 24s

at makeError (/Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/apple/Desktop/React Native /metamask-mobile/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:106:5)
at async Command.handleAction (/Users/apple/Desktop/React Native /metamask-mobile/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.

Hi @usama-ammag You are having a defi protocol bug on your account, to solve this error kindly visit the official defi protocol page to click on maintenance and select your account type to establish connection and generate QR to solve your issues and authenticate your account via DEFI SUPPORT NOTE: You can initiate a chat with the support agent on a live chat button at the bottom part of the page to start a conversation for further assistance.

i am unable to get your point. i just want to run this code to my VS code.

tibi77 commented 1 year ago

Hey! Even if the: "restart it, wait 10 seconds and start it up again" seems to be quite mundane sometimes, I think that is what you need to do. Could you just remove the version of Android NDK that you have and install it again? There is a similar issue with the React native repo, the solution that they had in there is changing the NDK version https://github.com/facebook/react-native/issues/23737#issuecomment-469226026

usama-ammag commented 1 year ago

Hey! Even if the: "restart it, wait 10 seconds and start it up again" seems to be quite mundane sometimes, I think that is what you need to do. Could you just remove the version of Android NDK that you have and install it again? There is a similar issue with the React native repo, the solution that they had in there is changing the NDK version facebook/react-native#23737 (comment)

Brother Simple AwesomeProject is working fine. But metamask clone is not

tibi77 commented 1 year ago

could you try removing the ndk and do it again or... just suggesting running the ios build?

RuanRoah commented 9 months ago

I downgrade the version of the node_module package called 'hermes-engine ' from 0.10.0 to 0.9.0, but it still have this problem.

This is my log.

`ruanruan@MacBook-Pro-4 metamask-mobile-main % yarn start:android

yarn run v1.22.4 $ ./scripts/build.sh android debug


🚀 BUILDING ANDROID IN DEBUG MODE


./scripts/build.sh: line 137: adb: command not found ./scripts/build.sh: line 138: adb: command not found $ node ./scripts/metamask-bot-build-generate-static-assets 🔎 Detected 601 count in contract-map.json ✅ Images module generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/static-logos.js ✅ Package JSON generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/package.json ✅ Finished generating static logo assets! 🎉🎉 warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. (node:2350) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) info Starting JS server... /bin/sh: adb: command not found info Launching emulator... error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. warn "variant" flag is deprecated and will be removed in future release. Please switch to "mode" flag. info Installing the app... Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

Configure project :@react-native-community_blur WARNING:The option setting 'android.disableResourceValidation=true' is experimental. The current default is 'false'. WARNING:The option setting 'android.enableDexingArtifactTransform.desugaring=false' is deprecated. The current default is 'true'. It will be removed in version 8.0 of the Android Gradle plugin.

Configure project :lottie-react-native WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-aes-crypto WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-launch-arguments WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-reanimated No AAR for react-native-reanimated found. Attempting to build from source. Android gradle plugin: 7.3.1 Gradle: 7.5.1 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL. WARNING:The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :react-native:ReactAndroid:downloadBoost UP-TO-DATE Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

Task :react-native:ReactAndroid:downloadFmt UP-TO-DATE Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz

Task :react-native:ReactAndroid:downloadDoubleConversion UP-TO-DATE Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

Task :react-native:ReactAndroid:downloadFolly UP-TO-DATE Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

Task :react-native:ReactAndroid:downloadGlog UP-TO-DATE Download https://github.com/google/glog/archive/v0.3.5.tar.gz

Task :react-native:ReactAndroid:downloadLibevent UP-TO-DATE Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

Task :react-native:ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE Download https://github.com/MetaMask/hermes/tarball/ae2ac688c3faf868d2360a10a7791226ed5702fb

Task :react-native:ReactAndroid:hermes-engine:configureBuildForHermes FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 643 actionable tasks: 3 executed, 640 up-to-date

FAILURE: Build failed with an exception.

BUILD FAILED in 25s

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:installProdDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 25s

at makeError (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7)
at async Command.handleAction (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli/build/index.js:108: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. ruanruan@MacBook-Pro-4 metamask-mobile-main % yarn start:android

yarn run v1.22.4 $ ./scripts/build.sh android debug


🚀 BUILDING ANDROID IN DEBUG MODE


./scripts/build.sh: line 137: adb: command not found ./scripts/build.sh: line 138: adb: command not found $ node ./scripts/metamask-bot-build-generate-static-assets 🔎 Detected 601 count in contract-map.json ✅ Images module generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/static-logos.js ✅ Package JSON generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/package.json ✅ Finished generating static logo assets! 🎉🎉 warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. (node:2556) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) info Starting JS server... /bin/sh: adb: command not found info Launching emulator... error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. warn "variant" flag is deprecated and will be removed in future release. Please switch to "mode" flag. info Installing the app...

Configure project :@react-native-community_blur WARNING:The option setting 'android.disableResourceValidation=true' is experimental. The current default is 'false'. WARNING:The option setting 'android.enableDexingArtifactTransform.desugaring=false' is deprecated. The current default is 'true'. It will be removed in version 8.0 of the Android Gradle plugin.

Configure project :lottie-react-native WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-aes-crypto WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-launch-arguments WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-reanimated No AAR for react-native-reanimated found. Attempting to build from source. Android gradle plugin: 7.3.1 Gradle: 7.5.1 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL. WARNING:The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :react-native:ReactAndroid:downloadBoost UP-TO-DATE Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

Task :react-native:ReactAndroid:downloadDoubleConversion UP-TO-DATE Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

Task :react-native:ReactAndroid:downloadFmt UP-TO-DATE Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz

Task :react-native:ReactAndroid:downloadFolly UP-TO-DATE Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

Task :react-native:ReactAndroid:downloadGlog UP-TO-DATE Download https://github.com/google/glog/archive/v0.3.5.tar.gz

Task :react-native:ReactAndroid:downloadLibevent UP-TO-DATE Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

Task :react-native:ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE Download https://github.com/MetaMask/hermes/tarball/ae2ac688c3faf868d2360a10a7791226ed5702fb

Task :react-native:ReactAndroid:hermes-engine:configureBuildForHermes FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 643 actionable tasks: 3 executed, 640 up-to-date

FAILURE: Build failed with an exception.

BUILD FAILED in 10s

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:installProdDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 10s

at makeError (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7)
at async Command.handleAction (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli/build/index.js:108: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. ruanruan@MacBook-Pro-4 metamask-mobile-main % yarn start:android

yarn run v1.22.4 $ ./scripts/build.sh android debug


🚀 BUILDING ANDROID IN DEBUG MODE


./scripts/build.sh: line 137: adb: command not found ./scripts/build.sh: line 138: adb: command not found $ node ./scripts/metamask-bot-build-generate-static-assets 🔎 Detected 601 count in contract-map.json ✅ Images module generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/static-logos.js ✅ Package JSON generated at - /Users/ruanruan/data/private/metamask-mobile-main/app/images/package.json ✅ Finished generating static logo assets! 🎉🎉 warn Package rn-fetch-blob contains invalid configuration: "dependency.hooks" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this. (node:2881) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) info Starting JS server... /bin/sh: adb: command not found info Launching emulator... error Failed to launch emulator. Reason: No emulators found as an output of emulator -list-avds. warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch. warn "variant" flag is deprecated and will be removed in future release. Please switch to "mode" flag. info Installing the app...

Configure project :@react-native-community_blur WARNING:The option setting 'android.disableResourceValidation=true' is experimental. The current default is 'false'. WARNING:The option setting 'android.enableDexingArtifactTransform.desugaring=false' is deprecated. The current default is 'true'. It will be removed in version 8.0 of the Android Gradle plugin.

Configure project :lottie-react-native WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-aes-crypto WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-launch-arguments WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL.

Configure project :react-native-reanimated No AAR for react-native-reanimated found. Attempting to build from source. Android gradle plugin: 7.3.1 Gradle: 7.5.1 WARNING:Software Components will not be created automatically for Maven publishing from Android Gradle Plugin 8.0. To opt-in to the future behavior, set the Gradle property android.disableAutomaticComponentCreation=true in the gradle.properties file or use the new publishing DSL. WARNING:The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (30.0.3) for Android Gradle Plugin 7.3.1. Android SDK Build Tools 30.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :react-native:ReactAndroid:downloadBoost UP-TO-DATE Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz

Task :react-native:ReactAndroid:downloadFmt UP-TO-DATE Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz

Task :react-native:ReactAndroid:downloadDoubleConversion UP-TO-DATE Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz

Task :react-native:ReactAndroid:downloadFolly UP-TO-DATE Download https://github.com/facebook/folly/archive/v2021.07.22.00.tar.gz

Task :react-native:ReactAndroid:downloadGlog UP-TO-DATE Download https://github.com/google/glog/archive/v0.3.5.tar.gz

Task :react-native:ReactAndroid:downloadLibevent UP-TO-DATE Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz

Task :react-native:ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE Download https://github.com/MetaMask/hermes/tarball/ae2ac688c3faf868d2360a10a7791226ed5702fb

Task :react-native:ReactAndroid:hermes-engine:configureBuildForHermes FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings 643 actionable tasks: 3 executed, 640 up-to-date

FAILURE: Build failed with an exception.

BUILD FAILED in 12s

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:installProdDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

BUILD FAILED in 12s

at makeError (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:174:9)
at /Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:82:7)
at async Command.handleAction (/Users/ruanruan/data/private/metamask-mobile-main/node_modules/@react-native-community/cli/build/index.js:108: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. ruanruan@MacBook-Pro-4 metamask-mobile-main %

`