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

Auto generated file issue AppDatabase_Impl.java #124

Open
hardilundavia opened this issue Nov 16, 2024 · 6 comments
Open

Auto generated file issue AppDatabase_Impl.java #124

hardilundavia opened this issue Nov 16, 2024 · 6 comments

Comments

@hardilundavia
Copy link

hardilundavia commented Nov 16, 2024

\data\room\AppDatabase_Impl.java:53: error: onCreate(SupportSQLiteDatabase) in <anonymous com.farefood.cooker.data.room.AppDatabase_Impl$1> cannot override onCreate(SupportSQLiteDatabase) in Delegate
protected void onCreate(SupportSQLiteDatabase _db) {
^
attempting to assign weaker access privileges; was public
D:\Gaurav Project\Cooker\app\build\generated\source\kapt\debug\com\farefood\cooker\data\room\AppDatabase_Impl.java:82: error: onValidateSchema(SupportSQLiteDatabase) in <anonymous com.farefood.cooker.data.room.AppDatabase_Impl$1> cannot override onValidateSchema(SupportSQLiteDatabase) in Delegate
protected RoomOpenHelper.ValidationResult onValidateSchema(SupportSQLiteDatabase _db) {
^
attempting to assign weaker access privileges; was public

Unable to update auto generated file methods so I have clean and rebuild , update room version and invalidate cache .
when add library in gradle and try to run app at that time above error faced

@sanjay-mi
Copy link
Collaborator

Hello @hardilundavia

Thank you for using Lassi Picker.

Can you please share more details about your issue?

Could you also give us the details of the below versions?

  • Room dependency version
  • Lassi picker version
  • Android studio version
  • Gradle version

@hardilundavia
Copy link
Author

hardilundavia commented Nov 18, 2024

Hello @hardilundavia

Thank you for using Lassi Picker.

Can you please share more details about your issue?

Could you also give us the details of the below versions?

  • Room dependency version
  • Lassi picker version
  • Android studio version
  • Gradle version

Thank you for quick reply @sanjay-mi ,

yes sure , below is the details

Room version : 2.6.1
Lassi picker version : 1.4.2
Android studio version : Android Studio Ladybug | 2024.2.1 Patch 1 (Build #AI-242.23339.11.2421.12483815, built on October 11, 2024)
Gradle Version : gradle-8.9

@sanjay-mi
Copy link
Collaborator

Hello @hardilundavia

We have tried to regenerate the issue but we are not been able to reproduce it.
I think there is an issue with your AppDatabase class. Please check into that.

@hardilundavia
Copy link
Author

Hello @hardilundavia

We have tried to regenerate the issue but we are not been able to reproduce it. I think there is an issue with your AppDatabase class. Please check into that.

For track that issue what should I have to do ?

@sanjay-mi
Copy link
Collaborator

Please share your AppDatabase class code.

@hardilundavia
Copy link
Author

Please share your AppDatabase class code.

@database(entities = [DoorEntity::class], version = 1)
abstract class AppDatabase : RoomDatabase() {
abstract fun doorDao(): DoorDao
}

i have this line in my app database file
this should affect ?
This is code in my structure so I need to remove it?

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

2 participants