Development Environment, Emulators & Devices
Install the SDKs, IDEs, emulators and simulators you need, and learn to run and debug an app on a real phone.
Beginner · about 4 hours · difficulty 2/5
Before writing features you need a reliable loop: edit code, see it on a device, inspect what went wrong. Setting this up is often the most frustrating step, so give it proper attention.
Core tools
- Android Studio ships the Android SDK, the emulator (AVD) and platform tools like
adb. You need it even for React Native and Flutter builds. - Xcode (macOS only) provides the iOS SDK, simulators and code signing. Without a Mac you can still build iOS apps through cloud services such as EAS Build, but local debugging is limited.
- VS Code is a common editor for React Native and Flutter projects.
Emulators vs real devices
Emulators and simulators are fast to iterate on, but they hide real-world problems: slow CPUs, small screens, notches, real GPS drift, and push notifications (which need a real iOS device in many setups). Test on at least one mid-range Android phone regularly.
Debugging basics
- Read device logs (
adb logcat, Xcode console, Metro orflutter runoutput). - Use hot reload to keep state while tweaking UI.
- Enable developer options and USB debugging on Android.
Common pitfalls
Mismatched Java/JDK versions, missing environment variables like ANDROID_HOME, and outdated CocoaPods are the usual culprits. Follow the official setup guide for your chosen framework line by line rather than mixing blog posts.
Good enough to move on: you can run a starter app on an emulator and on your own phone, and read its logs.
Key concepts
- Android Studio and the Android SDK
- Xcode and iOS simulators: Requires macOS
- Android emulator (AVD) setup
- Running on a physical device
- Reading device logs: adb logcat, Xcode console
- Hot reload and fast refresh
- Cloud builds when you lack a Mac
Mini project
Create a hello-world app, run it on an emulator and a real phone, add a log statement on a button tap, and capture that log line from the device.
Check yourself
Name two classes of bugs you are likely to miss if you only ever test on an emulator.
Free resources
- Set up your environment (React Native) (React Native)
- Android Studio user guide (Android Developers)
- Xcode documentation (Apple)