question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AndroidX build failure: cannot access SupportSQLiteDatabase

See original GitHub issue

My project is using AndroidX.

android.enableJetifier=true
android.useAndroidX=true

All works fine with io.requery:sqlite-android:3.23.1. It breaks with 3.26.0.

e: /path/to/my/project/TrackingCursorFactory.java:9: error: cannot access SupportSQLiteDatabase
public final class TrackingCursorFactory implements io.requery.android.database.sqlite.SQLiteDatabase.CursorFactory {
             ^
  class file for androidx.sqlite.db.SupportSQLiteDatabase not found

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GrahamBorlandcommented, Mar 21, 2019

Still a problem for me with 3.27.1 and 3.27.2. It only works if I explicitly include the androidx.sqlite dependency in my own build.gradle.

    api 'io.requery:sqlite-android:3.27.2'
    api 'androidx.sqlite:sqlite:2.0.1'

Running a dependencies report shows that io.requery:sqlite-android does not provide any transitive dependencies. The androidx.sqlite dependency is coming from my own build.gradle.

|    +--- io.requery:sqlite-android:3.27.2
|    +--- androidx.sqlite:sqlite:2.0.1
|    |    \--- androidx.annotation:annotation:1.0.2
0reactions
krunalpatel3commented, Dec 25, 2020

GrahamBorland thanks this helped me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Gradle Error: '(androidx.sqlite.db.SupportSQLiteOpenHelper ...
I'm using the AssetSQLiteOpenHelper library on an Android application but when creating a new instance of the AssetSQLiteOpenHelperFactory ...
Read more >
New version of SQLiteCipher? | B4X Programming Forum
<dependsOn>android-database-sqlcipher-4.4.3.aar</dependsOn> I can compile, but can't connect to SQLite with error:
Read more >
SupportSQLiteOpenHelper - Android Developers
SupportSQLiteDatabase getWritableDatabase (). Create and/or open a database that will be used for reading and writing.
Read more >
Android X: Persistent Storage With Room | by Mauricio Andrada
Room simplifies the development process by using Java Annotation Processing and Plain Old Java Objects to defined tables and databases; in other words,...
Read more >
SQLCipher for Android Application Integration - Zetetic LLC
This new version of SQLCipher for Android provides major benefits including optimized support for concurrent database access, drastic performance ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found