Development Environment
To build and develop NASA Explorer, you’ll need to set up your development environment with the following requirements.Required Software
Android Studio
Install Android Studio Koala or a newer version. This is the official IDE for Android development and includes all necessary build tools.Download from: developer.android.com/studio
Java Development Kit
Install JDK 17 or higher. The project uses Java 1.8 compatibility but requires JDK 17+ for building.
Android SDK Requirements
| Requirement | Version | API Level |
|---|---|---|
| Minimum SDK | Android 8.0 | API 28 |
| Target SDK | Android 14 | API 34 |
| Compile SDK | Android 14 | API 34 |
The minimum SDK level is Android 8.0 (API 28), which covers approximately 95% of active Android devices.
API Keys and Services
NASA Explorer requires external services to function properly. You’ll need to obtain API keys and configure Firebase.NASA API Key
Register for API Access
Visit api.nasa.gov and sign up for a free API key. The registration is instant and free.
Firebase Configuration
The application uses Firebase for authentication and data storage.Create Firebase Project
Go to Firebase Console and create a new project.
Enable Services
Enable the following Firebase services:
- Authentication - Email/Password provider
- Realtime Database - For storing user favorites
The
google-services.json file contains sensitive configuration data and is excluded from the repository via .gitignore.Gradle Configuration
The project uses Gradle version catalogs for dependency management.Key Dependencies
Memory Settings
Gradle is configured to use up to 2GB of heap memory. If you encounter build issues on machines with limited RAM, you can adjust this ingradle.properties:
Hardware Requirements
Minimum Requirements
- RAM: 8 GB (16 GB recommended for optimal performance)
- Storage: 8 GB free space for Android Studio and SDK
- Processor: Intel Core i5 or equivalent
Testing Devices
You can test the application on:- Physical Device: Any Android device running Android 8.0 (API 28) or higher
- Emulator: Android Virtual Device (AVD) configured with:
- API Level 28 or higher
- At least 2 GB RAM
- Google Play Services (for Firebase)
Physical devices provide better performance and more accurate testing results, especially for UI interactions and network requests.
Verification
After setting up your environment, verify everything is configured correctly:Check Configuration
Ensure these files exist and are properly configured:
local.properties(with NASA API key)app/google-services.json(Firebase configuration)