greenrobot / greenDAO

greenDAO is a light & fast ORM solution for Android that maps objects to SQLite databases.
http://greenrobot.org/greendao/
12.63k stars 2.89k forks source link

Compilation error occurred #1093

Closed wjiaqiao closed 2 years ago

wjiaqiao commented 2 years ago

gradle version:7.0.2 build gradle version:7.0.4 greendao version:3.3.0 targetSdk:32

Error info:

> Task :app:compileBleTestDebugKotlin
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class com.enqualcomm.medical.health.util.greendao.AppOpenHelper, unresolved supertypes: OpenHelper
Adding -Xextended-compiler-checks argument might provide additional information.

e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (27, 43): Unresolved reference: dao
Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class com.enqualcomm.medical.health.util.greendao.AppOpenHelper, unresolved supertypes: OpenHelper
Adding -Xextended-compiler-checks argument might provide additional information.

e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (28, 43): Unresolved reference: dao
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (66, 44): Cannot access class 'SportInfoTotalListoryDao'. Check your module classpath for missing or conflicting dependencies
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (66, 69): Unresolved reference: queryBuilder
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (68, 33): Unresolved reference: SportInfoTotalListoryDao
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (69, 33): Unresolved reference: SportInfoTotalListoryDao
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (70, 33): Unresolved reference: SportInfoTotalListoryDao
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (71, 33): Unresolved reference: SportInfoTotalListoryDao
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (76, 88): Unresolved reference: calorie
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (78, 32): Overload resolution ambiguity: 
public inline fun <T> Iterable<TypeVariable(T)>.forEach(action: (TypeVariable(T)) -> Unit): Unit defined in kotlin.collections
public inline fun <K, V> Map<out TypeVariable(K), TypeVariable(V)>.forEach(action: (Map.Entry<TypeVariable(K), TypeVariable(V)>) -> Unit): Unit defined in kotlin.collections
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (79, 28): Unresolved reference: startTimeLong
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (79, 59): Unresolved reference: startTimeLong
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (82, 81): Unresolved reference: usetime
e: G:\wjc_workspace\AndroidStudio\bleWatch\app\src\main\java\com\enqualcomm\medical\health\ui\sportFrag\SportRecordActivity.kt: (310, 48): Cannot access class 'SportInfoTotalDao'. Check your module classpath for missing or conflicting dependencies
greenrobot-team commented 2 years ago

Did you resolve this issue? Anyhow, it appears generated code is not properly set up to be included in the source set that is compiled.

Closing this issue due to inactivity. :zzz: Feel free to comment with more details or submit a new issue.