sockeqwe / sqlbrite-dao

DAO for SQLBrite
http://hannesdorfmann.com/android/sqlbrite-dao
Apache License 2.0
182 stars 22 forks source link

Not able to import the new version #19

Closed ghost closed 8 years ago

ghost commented 8 years ago

This is really weird, I am trying to import the latest release but for some reason everything breaks, only the annotation module is imported the Dao and object mapper are not imported

Note: I am using them in a library module which I use internally

sockeqwe commented 8 years ago

Any error message? Try to build your project via command line: gradlew clean build --stacktrace

sockeqwe commented 8 years ago

Btw. there were API breaking changes from 0.2.x to 0.4.0, but that is not your problem, isn't it? You are talking about including the dependency to the library, right?

ghost commented 8 years ago

Yes the library here is my own though and SQLBrite Dao is a dependency in it

ghost commented 8 years ago

The error basically is that the Dao class was not found and hence all methods in the class weren't either

sockeqwe commented 8 years ago

Sounds weird, for me it's working as usual and I can't see any reason why it should make a difference if your projects is an android app or an android library ... Stupid question: but have you already tried to make a clean and rebuild in android studio.

ghost commented 8 years ago

Exactly I am not able to understand the problem either, I have tried rebuild, clean and also Invalides caches and restarted android studio, really weird On 15-Oct-2015 3:06 pm, "Hannes Dorfmann" notifications@github.com wrote:

Sounds weird, for me it's working as usual and I can't see any reason why it should make a difference if your projects is an android app or an android library ... Stupid question: but have you already tried to make a clean and rebuild in android studio.

— Reply to this email directly or view it on GitHub https://github.com/sockeqwe/sqlbrite-dao/issues/19#issuecomment-148334167 .

sockeqwe commented 8 years ago

I close this issue. If the problem is still not solved, feel free to reopen this issue

ghost commented 8 years ago

Cool i solved it, if anyone stumbles here this is how I solved it, I don't know if this problem is because of android studio or something else

I had to import the new version as a library project, remove the gradle dependency and then fix all the errors.

After this i was able to remove the library project and go back to the gradle dependecy

PS I still can't figure out what was causing the problem

harinair commented 8 years ago

I have encountered this weird error when upgrading from 0.2.2. Read more about it in #24.