Sections in this article
- Android Studio
- Clone ledger-live-mobile repository and install it
- Creating an emulator
- Run ledger-live-mobile in the emulator
Download and install Android Studio.
Go by default installation or custom it if you know what you are doing.
Clone ledger-live-mobile repository and install it
Install dependencies using brew
brew install ruby watchman yarn
Then clone ledger-live-mobile, and cd into the folder.
git clone email@example.com:LedgerHQ/ledger-live-mobile.git cd ledger-live-mobile
You can now use the yarn command.
Once it has finished, keep the terminal up and go back to Android Studio
Creating an emulator
Go back to Android Studio and
Open an Existing Project. The targeted folder is :
It takes some time to load the project. During this time, create an emulator (or you can use your own android device).
Click the AVD Manager icon on the upper right of Android Studio :
Create the device that you want to have for test, don’t go too low on API level or it may not work.
Then start the created device in the AVD manager.
Run ledger-live-mobile in the emulator
Go back to your terminal, and add the Android sdk path.
Locate your SDK path, and add it to your env, the expected path is :
If you have some modification you want to test from your live-common you can
yalc add @ledger-live/common (if you have
yalc publish your live-common)
Then you should be able to :
yarn android and it should be running on your created device