我使用改造2.0和Robospice库,包含文件的gradle像这样:配置转换为RetrofitSpiceService
compile 'com.squareup.retrofit:retrofit:2.0.0-beta2'
compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2'
compile 'com.octo.android.robospice:robospice-retrofit:1.4.14'
我想用RetrofitGsonSpiceService
但是当我运行该应用程序我得到一个Suppressed: java.lang.ClassNotFoundException: retrofit.converter.GsonConverter
它是由RetrofitGsonSpiceService
类的
@Override
protected Converter createConverter() {
return new GsonConverter(new Gson());
}
方法造成的。
在改造2.0缺省转换器现在被排除。
我的问题是你知道配置Robospice轻松地与改造工作2.0一个简单的办法,或者是在那里预先配置SpiceService新改造2.0工作?