Skip to content

Project Fails to Build After Updating Gradle and SDK Versions #191

@imrankhalid001

Description

@imrankhalid001

⚠️ Build & Dependency Errors Summary
🧱 Gradle / Build Configuration Errors

Could not find com.google.dagger:hilt-android-gradle-plugin:2.32.

Namespace not specified. Specify a namespace in the module's build file.

Unresolved reference: BuildConfig

Unresolved reference: lifecycle

Unresolved reference: ViewModelInject

Manifest merger failed with multiple errors, see logs

A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction

Multiple substitutions specified in non-positional format; Did you mean to add the formatted="false" attribute?

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

🧩 Dependency & Version Compatibility Errors

com.google.dagger:hilt-android-gradle-plugin old version incompatible with new Gradle plugin.

androidx.work:work-runtime:2.5.0 incompatible with targetSdkVersion 35.

androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha02 deprecated.

androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0 outdated for Kotlin 1.9+/AGP 8+.

org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.21 too old for Gradle 8+.

com.android.tools.build:gradle:4.2.2 incompatible with Gradle 8.

💥 Runtime Errors

java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.

RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.

Failed to load include path /Users/testuser/Library/Android/sdk/platforms/android-35/android.jar

incompatible types: NonExistentClass cannot be converted to Annotation (from @error.NonExistentClass() in generated stub)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions