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

Unable to load class 'com.dbflow5.annotation.Migration' #1740

Open
khushank-veersa opened this issue Jun 18, 2024 · 2 comments
Open

Unable to load class 'com.dbflow5.annotation.Migration' #1740

khushank-veersa opened this issue Jun 18, 2024 · 2 comments

Comments

@khushank-veersa
Copy link

khushank-veersa commented Jun 18, 2024

ISSUE_TEMPLATE

DBFlow Version: 5.0.0-alpha2

Bug or Feature Request: Bug

Description:

I am trying to use the class "com.dbflow5.annotation.Migration" in my project but I am getting this error when I run the code. This error pops up even when I have commented out the code. Rest of the annotations don't give any error like this.

I have already added the proguard rules.
I have tried INVALIDATE AND RESTART Method.
I have tried deleting .gradle folder as well.
I have tried the 2 fixes mentioned in the error.

Documentation Link Followed : https://dbflow.gitbook.io/dbflow/usage2/including-in-project

Gradle Config :
def dbflow_version = "5.0.0-alpha2"

annotationProcessor "com.github.agrosner.dbflow:processor:${dbflow_version}"
implementation "com.github.agrosner.dbflow:core:${dbflow_version}"
implementation "com.github.agrosner.dbflow:lib:${dbflow_version}"
implementation "com.github.agrosner.dbflow:sqlcipher:${dbflow_version}"
implementation "net.zetetic:android-database-sqlcipher:4.4.2@aar"
implementation "androidx.sqlite:sqlite:2.1.0"

Error Message:

Unable to load class 'com.dbflow5.annotation.Migration'
com.dbflow5.annotation.Migration

Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)

Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.

Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

image


@deeptikukreti
Copy link

any update on this ?

@loquitowen
Copy link

loquitowen commented Aug 14, 2024 via email

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

3 participants