2016-03-24 13 views
0

Ich versuche, die AndroidAnnotations REST Documentation zu folgen.AndroidAnnotations und Rest

Aber ich bekomme Fehler über MappingJackson2HttpMessageConverter nicht gefunden.

Um AndroidAnnotations einzurichten, folgte ich der Gradle Setup ... Dies funktioniert gut und ein kleines Projekt funktioniert.

Aber sobald ich versuche, MappingJackson2HttpMessageConverter zu verwenden, hört es auf zu arbeiten.

Hier sind meine Gradle Abhängigkeiten:

dependencies { 
    apt "org.androidannotations:androidannotations:$AAVersion" 
    compile "org.androidannotations:androidannotations-api:$AAVersion" 

    compile "org.androidannotations:ormlite-api:$AAVersion" 
    apt "org.androidannotations:ormlite:$AAVersion" 

    compile "org.androidannotations:rest-spring-api:$AAVersion" 
    apt "org.androidannotations:rest-spring:$AAVersion" 

    compile 'com.fasterxml.jackson.core:jackson-core:2.7.3' 
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.3' 
    compile 'com.fasterxml.jackson.core:jackson-databind:2.7.3' 

} 

Was ich hier fehlt?

Danke, Urkman

Antwort

1

Sie haben auch die Frühlings Android REST Vorlage Abhängigkeit hinzuzufügen:

dependencies { 
    compile 'org.springframework.android:spring-android-rest-template:2.0.0.M4' 
} repositories { 
    maven { 
     url 'https://repo.spring.io/libs-milestone' 
    } 
}