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

GsonTypeAdapterFactory not found #62

Closed
epool opened this issue Aug 1, 2016 · 2 comments
Closed

GsonTypeAdapterFactory not found #62

epool opened this issue Aug 1, 2016 · 2 comments

Comments

@epool
Copy link

epool commented Aug 1, 2016

Android Studio can't find @GsonTypeAdapterFactory annotation.
I am using apt 'com.ryanharter.auto.value:auto-value-gson:0.4.0', I also have tried with apt 'com.ryanharter.autogson:auto-gson:0.1-SNAPSHOT' from maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }.

Not sure if I should use apt, provided or compile for importing.

@rharter
Copy link
Owner

rharter commented Aug 1, 2016

You need to use both apt and provided.

apt 'com.ryanharter.auto.value:auto-value-gson:0.4.0'
provided 'com.ryanharter.auto.value:auto-value-gson:0.4.0'

@rharter
Copy link
Owner

rharter commented Aug 1, 2016

I'll add that to the readme.

@rharter rharter closed this as completed in 9016d66 Aug 1, 2016
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

2 participants