-
Notifications
You must be signed in to change notification settings - Fork 330
Closed
Description
Installation Instructions (Android Studio)
Prerequisites
- Android Studio: Latest stable version (recommended)
- JDK: Version 11 or 17 (match the project Gradle settings)
- Android SDK: Install via Android Studio SDK Manager
- Git: For version control
- Optional: A Firebase project and
google-services.jsonif the app uses Firebase
Steps to Install and Run
- Clone the repository
git clone https://github.com/SimCoderYoutube/InstagramClone.git cd InstagramClone - Open in Android Studio
- Open Android Studio
- Go to:
File → Open... - Select the cloned
InstagramClonefolder (it should containbuild.gradle,settings.gradle) - Allow Gradle to sync (accept any prompts to install missing SDK/platform or plugins)
- Set JDK and SDK if needed
- Go to:
File → Project Structure → SDK Location - Set JDK location (use JDK 11 or 17 as required by the project)
- Go to:
Tools → SDK Managerand install the required Android API level (checkcompileSdkVersioninbuild.gradle)
- Go to:
- Configure emulator or connect a physical device
- Go to:
Tools → Device Manager(orAVD Manager) - Create or start an emulator, or connect a device with USB debugging enabled
- Go to:
- Build & Run the app
- Choose the "app" module in the Run/Debug configuration
- Click the green Run button or select
Run → Run 'app' - Alternatively, build from terminal:
- macOS/Linux:
./gradlew assembleDebug - Windows:
gradlew.bat assembleDebug
- macOS/Linux:
Firebase (if applicable)
- Create a Firebase project and add an Android app with your package name (
applicationId) - Download
google-services.jsonand place it in theapp/directory - Verify your Gradle files have the Google services plugin and Firebase dependencies
Common Troubleshooting
- Gradle sync fails: Go to
File → Invalidate Caches / Restart, then sync again - Missing SDK/platform: Open SDK Manager and install the required API level
- Gradle/Kotlin plugin mismatch: Update Android Studio or adapt plugin versions in
build.gradle - Emulator issues: Enable hardware acceleration (HAXM/Hypervisor) or use a physical device
- Firebase/network/auth errors: Ensure
google-services.jsonmatches your app ID; check Firebase rules
Additionally, follow all code style and contribution guidelines described in the repository. If targeting specific Android OS versions, ensure your build and target SDK settings are updated in build.gradle as per project recommendations.
Metadata
Metadata
Assignees
Labels
No labels