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

ava.lang.NoSuchMethodException: <init> [] #821

Open
ilhamfidatama opened this issue Nov 7, 2019 · 0 comments
Open

ava.lang.NoSuchMethodException: <init> [] #821

ilhamfidatama opened this issue Nov 7, 2019 · 0 comments

Comments

@ilhamfidatama
Copy link

ilhamfidatama commented Nov 7, 2019

i'm used kotlin, and i got some error
D/SQL Log: SQLiteQuery: SELECT * FROM PRODUCT_SUGAR_ORM W/System.err: java.lang.NoSuchMethodException: <init> [] at java.lang.Class.getConstructor(Class.java:531) at java.lang.Class.getDeclaredConstructor(Class.java:510) at com.orm.SugarRecord.getEntitiesFromCursor(SugarRecord.java:212) at com.orm.SugarRecord.find(SugarRecord.java:204) at com.orm.SugarRecord.listAll(SugarRecord.java:127)

and this is my code
data class ProductSugarORM( var base_price: Double, var category: Int, val created_on: String, var description: String, val id: Int, var name: String, var sell_price: Double, var stock: Int, val store: Int, val type: String, val updated_on: String ):SugarRecord(){ fun ProductSugarORM(){} }

i want to see the result using Log.w("load-local", "${SugarRecord.listAll(ProductSugarORM::class.java)}")

it doesn't work

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