Skip to content

Room: java.lang.AbstractMethodError: abstract method "void androidx.sqlite.db.SupportSQLiteDatabase.beginTransactionReadOnly()" #869

Open
@jaroslavhavelik

Description

@jaroslavhavelik

Gradle Version

8.13

AGP Version

8.9.1

Code Minifier/Optimizer

None

Version

5.3.0

Sentry SDK Version

8.8.0

Steps to Reproduce

  1. Apply Sentry Gradle Plugin in app module
  2. Use Room dependency 2.7.0 and higher
  3. Build app and try to write entity to Room

Possible workaround:
Put following code to apps build.gradle.kts:

    dependencies {
        implementation("androidx.sqlite:sqlite:2.5.0") {
            exclude(group = "io.sentry", module = "sentry-android-sqlite")
        }
        implementation("androidx.sqlite:sqlite-ktx:2.5.0") {
            exclude(group = "io.sentry", module = "sentry-android-sqlite")
        }
    }

    configurations.configureEach {
        resolutionStrategy {
            force("androidx.sqlite:sqlite:2.5.0")
            force("androidx.sqlite:sqlite-ktx:2.5.0")
        }
    }

Expected Result

Sentry gradle plugin works with latest stable version of Room.

Actual Result

Room returns error with
Room: java.lang.AbstractMethodError: abstract method "void androidx.sqlite.db.SupportSQLiteDatabase.beginTransactionReadOnly()"

Metadata

Metadata

Assignees

Labels

AndroidBugSomething isn't working

Type

Projects

Status

Needs Discussion

Status

Waiting for: Product Owner

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions