Build & Sync Issues
Gradle Sync Failed
Gradle Sync Failed
Symptoms:Wait for the sync to complete (may take 1-2 minutes).Solution 2: Clean ProjectSolution 3: Invalidate CachesThis clears all cached data and restarts Android Studio.Solution 4: Check Gradle WrapperEnsure
- “Gradle sync failed” error in Android Studio
- Build toolbar is grayed out
- Can’t run the app
gradle-wrapper.properties is correct:The project includes Gradle Wrapper, so you don’t need to install Gradle manually.
Dependency Resolution Failed
Dependency Resolution Failed
Symptoms:Then reopen the project and sync.Solution 3: Verify DependenciesCheck
- “Could not resolve…” errors
- Missing library errors
app/build.gradle.kts contains:Build Takes Too Long
Build Takes Too Long
Symptoms:Solution 2: Use Build CacheSolution 3: Exclude Unnecessary ModulesDisable unused modules in Project Structure:
- Gradle build takes 5+ minutes
- Android Studio becomes unresponsive
gradle.properties:UI & Compose Issues
Icons Not Found / Missing Icons
Icons Not Found / Missing Icons
Symptoms:Then click Sync Now in the notification bar.Verify Icon Imports:
- “Unresolved reference: Icons” error
- Missing icon imports
- Compose compiler errors about Material Icons
app/build.gradle.kts:Compose Preview Not Working
Compose Preview Not Working
Symptoms:Solution 2: Refresh PreviewClick the Refresh icon in the Preview panel, or:Solution 3: Check Preview DependenciesEnsure you have:Solution 4: Switch to Interactive ModeClick the Interactive button in Preview to enable interactions.
- “No preview available” in Android Studio
- Preview panel is blank or shows errors
App Crashes on Launch
App Crashes on Launch
Symptoms:Filter by “Error” level and look for stack traces.Solution 2: Common Crash CausesSolution 3: Clear App DataOn emulator/device:Then reinstall the app.
- App opens then immediately closes
- “Unfortunately, app has stopped” message
- Missing navigation route: Ensure all routes in
AppScreens.ktare defined inAppNavigation.kt - NullPointerException: Check if
FakeDatais accessible - Theme issues: Ensure
MainActivitywraps content in theme:
Navigation Not Working
Navigation Not Working
Emulator Issues
Emulator Won't Start
Emulator Won't Start
Symptoms:Solution 2: Increase Emulator Resources
- Emulator shows loading screen indefinitely
- “The emulator process has terminated” error
- Windows: Install Intel HAXM or enable Hyper-V
- Mac: Hypervisor.framework should be enabled by default
- Linux: Install KVM
- Open Device Manager
- Click Edit (pencil icon) on your AVD
- Show Advanced Settings
- Increase:
- RAM: 2048 MB or higher
- VM heap: 256 MB
- Internal Storage: 2048 MB
- Try x86_64 images (faster with hardware acceleration)
- Avoid arm64 images unless on Apple Silicon
- Use Google Play images for better app compatibility
- Click ▼ next to Play button
- Select Cold Boot Now
App Not Running on Emulator
App Not Running on Emulator
Symptoms:You should see your emulator listed.Solution 2: Check Device SelectionEnsure the correct device is selected in the device dropdown (top toolbar).Solution 3: Reinstall the AppSolution 4: Verify Minimum SDKCheck your AVD’s Android version is API 24 or higher:
- Build succeeds but app doesn’t appear
- “Waiting for target device to come online” message
Emulator is Very Slow
Emulator is Very Slow
Symptoms:Avoid “Software” rendering.Solution 3: Use Physical DeviceTesting on a real device is always faster. See Running on Physical Device.Solution 4: Close Other AppsClose unused applications and browser tabs to free up system resources.
- UI is laggy and unresponsive
- Takes 30+ seconds to open app
Data & Logic Issues
FakeData Not Updating
FakeData Not Updating
Symptoms:Then rerun the app.Solution 2: Clear App DataIf data is cached:Solution 3: Verify ImportEnsure screens import
- Changed
FakeData.ktbut UI shows old data - Student name or classes don’t update
FakeData:Current Class Not Highlighting
Current Class Not Highlighting
Symptoms:The HomeScreen finds the current class with:
- No class shows as “Clase actual” on HomeScreen
- Wrong class is highlighted
FakeData.kt has exactly one class with isCurrent = true:Classes Not Showing on ScheduleScreen
Classes Not Showing on ScheduleScreen
Symptoms:
- ScheduleScreen is blank or shows static data
- Not using
FakeDataclasses
ScheduleScreen.kt uses hardcoded data instead of FakeData.todayClasses.Solution: Update ScheduleScreen to Use FakeDataReplace hardcoded TimeClassCard calls with:Git & Version Control
Git Clone Failed
Git Clone Failed
Symptoms:Solution 2: Authentication IssuesIf the repo is private:Or use SSH:
- “Repository not found” error
- Authentication failed
Gradle Wrapper Not Executable
Gradle Wrapper Not Executable
Symptoms:On Windows, use:
- “Permission denied” when running
./gradlew
Android Studio Issues
Android Studio Crashes or Freezes
Android Studio Crashes or Freezes
Solution 1: Increase IDE MemoryAdd/modify:Solution 2: Disable Unnecessary PluginsSolution 3: Update Android Studio
Code Completion Not Working
Code Completion Not Working
Solution:Rebuild indices:After restart, wait for indexing to complete (progress bar at bottom).
Getting More Help
If your issue isn’t covered here, try these resources:
Android Studio Docs
Official Android Studio documentation
Jetpack Compose
Compose documentation and samples
Stack Overflow
Community Q&A for Android development
GitHub Issues
Report bugs or request features
Project-Specific Help
For issues specific to the TecNM Control Escolar app:- Check the README: Many common setup issues are covered in the project README
- Review code structure: See the project structure in the README
- Ask the team: Contact the development team listed in the README
Related Guides
Running Emulator
Setup and run the app
Fake Data
Understanding test data
Supabase Integration
Future backend plans
