MetaMask / MetaMask/metamask-mobile

i am unable to run the clone

Open
#6,630 5 comments 1 reaction 0 assignees View on GitHub
Sev3-low team-wallet-api-platform-deprecated
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

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

-------------------------------------------

* 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.

Contributor guide

Open the contributing guide

Research direction

Start with the reported yarn start:android command and scripts/build.sh, then inspect the :ReactAndroid:buildReactNdkLib failure in the React Native Android build. Reproduce the failure with the shown environment and Android NDK details, and determine whether the project setup or build instructions need correction. Done means the Android debug build completes successfully or the issue is narrowed to an external environment problem.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native, typescript
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.