MetaMask / MetaMask/metamask-mobile
A problem occurred evaluating project ':react-native-aes-crypto-forked'.
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
### What is this about?
Having poured over the setup instructions and sought help on Discord, I've hit a road block in my attempt to setup `metamask-mobile` for local development on Ubuntu 24.
Whenever I execute `yarn start:android`, I receive the following error:
```
FAILURE: Build failed with an exception.
* Where:
Build file '/home/daniel/AndroidStudioProjects/metamask-mobile/node_modules/react-native-aes-crypto-forked/android/build.gradle' line: 22
* What went wrong:
A problem occurred evaluating project ':react-native-aes-crypto-forked'.
> Could not find method compile() for arguments [com.android.support:appcompat-v7:23.0.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.
```
In preparing for to submit this issue, I rebooted to start from scratch. Though I suspect the issue described above is still pertinent, now I see:
```
> Task :app:createBundleProdDebugJsAndAssets
warning: Bundler cache is empty, rebuilding (this may take a minute)
SyntaxError: index.js: Invalid METAMASK_BUILD_TYPE of was passed to metro transform
Error: Invalid METAMASK_BUILD_TYPE of was passed to metro transform
```
According to the script output, that variable is set to this:
```
METAMASK_BUILD_TYPE is set to: main
METAMASK_ENVIRONMENT is set to: local
```
Hopefully this is helpful. I'm glad to provide more details, as I'm eager to get this up and running.
### Scenario
_No response_
### Design
_No response_
### Technical Details
_No response_
### Threat Modeling Framework
_No response_
### Acceptance Criteria
_No response_
### Stakeholder review needed before the work gets merged
- [ ] Engineering (needed in most cases)
- [ ] Design
- [ ] Product
- [ ] QA (automation tests are required to pass before merging PRs but not all changes are covered by automation tests - please review if QA is needed beyond automation tests)
- [ ] Security
- [ ] Legal
- [ ] Marketing
- [ ] Management (please specify)
- [ ] Other (please specify)
### References
_No response_
Contributor guide
Research direction
Reproduce the setup with `yarn start:android`, then inspect `node_modules/react-native-aes-crypto-forked/android/build.gradle` at line 22 and the `index.js` Metro error involving `METAMASK_BUILD_TYPE`. Compare both failures with the reported environment values; done means the local Android development build completes without either error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, react-native
- Domain
- build-system, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100