florent37 / RxRetroJsoup

A simple API-like from html website (scrapper) for Android, RxJava2 ready !
Apache License 2.0
485 stars 44 forks source link

Compilation failed #6

Closed hram closed 7 years ago

hram commented 7 years ago

public class TrendingRetroJsoup implements Trending { private final RxJsoup rxJsoup;

public TrendingRetroJsoup(String url, Boolean exceptionIfNotFound) { this.rxJsoup = new RxJsoup(url, exceptionIfNotFound); }

Error:(15, 20) error: constructor RxJsoup in class RxJsoup cannot be applied to given types; required: String,boolean,OkHttpClient found: String,Boolean reason: actual and formal argument lists differ in length

compile 'com.github.florent37:retrojsoup:1.0.2'
compile 'com.github.florent37:rxjsoup:1.0.2'
compile 'org.jsoup:jsoup:1.10.2'
compile 'io.reactivex:rxjava:1.2.7'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'com.squareup.okhttp3:okhttp:3.6.0'
annotationProcessor 'com.github.florent37:retrojsoup-compiler:1.0.0'
florent37 commented 7 years ago

did you update the 3 dependencies ?

2017-03-05 18:11 GMT+01:00 Evgeny Hramov notifications@github.com:

public class TrendingRetroJsoup implements Trending { private final RxJsoup rxJsoup;

public TrendingRetroJsoup(String url, Boolean exceptionIfNotFound) { this.rxJsoup = new RxJsoup(url, exceptionIfNotFound); }

Error:(15, 20) error: constructor RxJsoup in class RxJsoup cannot be applied to given types; required: String,boolean,OkHttpClient found: String,Boolean reason: actual and formal argument lists differ in length

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/florent37/RxRetroJsoup/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AFfQXDilhQzL15y7LoD9WGj-QvSUSPOsks5riuzQgaJpZM4MTeZs .

hram commented 7 years ago

no I updated dependencies list of dependencies in issue

hram commented 7 years ago

I updated this 2: compile 'com.github.florent37:retrojsoup:1.0.2' compile 'com.github.florent37:rxjsoup:1.0.2'

What the third one?

florent37 commented 7 years ago

The third is the retrojsoup compiler

Le 5 mars 2017 18:44, "Evgeny Hramov" notifications@github.com a écrit :

I updated this 2: compile 'com.github.florent37:retrojsoup:1.0.2' compile 'com.github.florent37:rxjsoup:1.0.2'

What the third one?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/florent37/RxRetroJsoup/issues/6#issuecomment-284246334, or mute the thread https://github.com/notifications/unsubscribe-auth/AFfQXOiyKB32_KutV6IQ4iawUFy8hkHnks5rivR7gaJpZM4MTeZs .

florent37 commented 7 years ago

try now, should be fixed (was a bintray upload error)

florent37 commented 7 years ago

annotationProcessor 'com.github.florent37:retrojsoup-compiler:1.0.2'

hram commented 7 years ago

compile 'com.github.florent37:retrojsoup:1.0.2' compile 'com.github.florent37:rxjsoup:1.0.2' annotationProcessor 'com.github.florent37:retrojsoup-compiler:1.0.2'

error: Bad service configuration file, or exception thrown while constructing Processor object: javax.annotation.processing.Processor: Provider com.github.florent37.autoasync.processor.RetroJsoupProcessor could not be instantiated: java.lang.NoClassDefFoundError: com/squareup/javapoet/TypeName