Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 24 - Error: package android.database does not exist - 3rd edition #38

Open
UltraBurstXD opened this issue Jul 4, 2021 · 1 comment

Comments

@UltraBurstXD
Copy link

/home/[user.name]/AndroidStudioProjects/Podplay/app/build/generated/source/kapt/debug/db/PodcastDao_Impl.java:3: error: package android.database does not exist
import android.database.Cursor;
^
/home/[user.name]/AndroidStudioProjects/Podplay/app/build/generated/source/kapt/debug/db/PodPlayDatabase_Impl.java:128: error: cannot access Context
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(configuration.context)
^
class file for android.content.Context not found
/home/[user.name]/AndroidStudioProjects/Podplay/app/build/generated/source/kapt/debug/db/PodPlayDatabase_Impl.java:147: error: cannot access VERSION
boolean _supportsDeferForeignKeys = android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP;
^
class file for android.os.Build$VERSION not found
/home/[user.name]/AndroidStudioProjects/Podplay/app/build/generated/source/kapt/debug/db/PodcastDao_Impl.java:168: error: cannot find symbol

final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
^

symbol: class Cursor
/home/[user.name]/AndroidStudioProjects/Podplay/app/build/generated/source/kapt/debug/db/PodcastDao_Impl.java:246: error: cannot find symbol
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
^
symbol: class Cursor
location: class PodcastDao_Impl

5 errors

@UltraBurstXD
Copy link
Author

Well that only occurs with Java 11...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant