Getting Started with Contentful and Android

The documentation for Android (as of 29/11/2017) uses an old version of the Java SDK:

Here is the updated code you will need to use:


compile ''
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.7'

CDAClient client = CDAClient.builder()

    .where("content_type", "<content_type_id>")
    .subscribe(new DisposableSubscriber<CDAArray>() {
        CDAArray result;

        public void onComplete() {

        public void onError(Throwable error) {

        public void onNext(CDAArray cdaArray) {
            result = cdaArray;

For more details see the documentation on GitHub:

For changes made from Contentful Java SDK 7 to 8:


thanks again for noticing. I’ll be updating the documentation, and it should be updated soon™.