Build and Runtime Errors, Dependency Updates, and Android 15 Support #192
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🔧 Overview
This PR fixes several build and runtime issues that appeared after updating the project to Gradle 8+, Kotlin 1.9+, and Android SDK 35.
It also adds support for Android 15 (API 35), improves app stability, and updates several key dependencies.
🐛 Main Issues Fixed
BuildConfig not found due to missing namespace setup.
Unresolved references for lifecycle, ViewModelInject, and Hilt classes.
Manifest merger and namespace errors after Gradle upgrade.
Kapt compilation failure (KaptWithoutKotlincTask issue).
PendingIntent crash on Android 12+ (FLAG_IMMUTABLE requirement).
WorkManager crash in MyWorker caused by old PendingIntent usage.
Resource formatting error in share_message string.
🧩 Fixes and Updates
Added proper namespace in build.gradle.
Updated Hilt, Lifecycle, and WorkManager dependencies.
Replaced deprecated @ViewModelInject with @hiltviewmodel.
Updated Gradle plugin to 8.6.1 and Kotlin to 1.9.x.
Added FLAG_IMMUTABLE for PendingIntents (Android 12+).
Included runtime notification permission for Android 13+.
Upgraded targetSdkVersion and compileSdkVersion to 35 (Android 15).
Migrated project to Java 17 compatibility.
🚀 Enhancements
Full Android 15 support.
Better stability and build performance with Gradle 8+.
Clean and consistent dependency versions across the project.
Verified smooth app launch and no runtime crashes on devices from API 21–35.
🧪 Tested On
✅ Build verified successfully.
✅ WorkManager tasks running as expected.
✅ Notifications working with proper permissions.
✅ App tested on Android 12, 13, and 15 emulators.