-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
Duplicate classes and files when depending on a project using ormlite-core #141
Comments
See the ChangeLog: https://raw.githubusercontent.com/j256/ormlite-core/master/src/main/javadoc/doc-files/changelog.txt In 6.0 we migrated all of the core classes into the JDBC and Android versions:
|
Thanks for the reply, however the dependency is not an Android dependency but a pure Java/kotlin dependency, so it can't/shouldn't use the Android package. What to do in that case ? Thanks. |
@j256 Any idea? This issue prevents us from migrating to ORMLite 6.x Why not declaring a dependency from |
Frankly I didn't foresee this issue. I never thought that someone would ever want to depend on both of them. Not everyone uses maven or gradle or some other dependency management system that would automatically pull in jars so it was an attempt to make it easier for folks. Maybe I should consider rolling that back even though it is going to be painful. |
How to solve it? |
You just have to exclude the duplicated libraries in gradle like so:
|
@j256 I've got same issue when importing jdbc into our Android project (we use JDBC internally as well)
|
Our Android project uses
ormlite-android
and depends on another project that usesormlite-core
.The base dependency includes ormlite with:
implementation ("com.j256.ormlite:ormlite-core:6.1")
And the Android project includes ormlite with:
implementation ("com.j256.ormlite:ormlite-android:6.1")
When building the Android project, we get the following errors:
This was working fine with Ormlite 5.x
The text was updated successfully, but these errors were encountered: