docs/pages/workflow/android-studio-emulator.mdx
import AndroidEmulatorInstructions from 'scenes/get-started/set-up-your-environment/instructions/_androidEmulatorInstructions.mdx';
import AndroidStudioEnvironmentInstructions from 'scenes/get-started/set-up-your-environment/instructions/_androidStudioEnvironmentInstructions.mdx';
import AndroidStudioInstructions from 'scenes/get-started/set-up-your-environment/instructions/_androidStudioInstructions.mdx';
import { Terminal } from '/ui/components/Snippet';
import { Step } from '/ui/components/Step';
If you don't have an Android device available to test with, we recommend using the default emulator that comes with Android Studio. If you run into any problems setting it up, follow the steps in this guide.
<AndroidStudioEnvironmentInstructions /> <AndroidStudioInstructions /> <AndroidEmulatorInstructions />adb versionsHaving multiple adb versions on your system can result in the following error:
<Terminal cmd={["$ adb server version (xx) doesn't match this client (xx); killing..."]} />
This is because the adb version on your system is different from the adb version on the Android SDK platform-tools.
<Terminal cmd={['$ adb version']} /> </Step>
<Step label="2"> And from the Android SDK platform-tool directory:<Terminal cmd={[ '$ cd ~/Library/Android/sdk/platform-tools', '$ ./adb version' ]} cmdCopy="cd ~/Library/Android/sdk/platform-tools && ./adb version" /> </Step>
<Step label="3"> Copy `adb` from Android SDK directory to `usr/bin` directory:<Terminal cmd={['$ sudo cp ~/Library/Android/sdk/platform-tools/adb /usr/bin']} /> </Step>