我試圖用改造2.0.0.beta2,像下面錯誤:不兼容的類型:GsonConverterFactory不能轉換到廠
Retrofit retrofit = new Retrofit.Builder()
.baseUrl(BASE_URL)
.addConverterFactory(GsonConverterFactory.create())
.build();
爲 GSON設立轉換器的gradle這個錯誤拋出後
時GsonConverterFactory cannot be converted to Factory
如何解決?
發表您的gradle這個 – Blackbelt
,我希望你不會添加GSON轉換器gradle這個 –
請參閱此鏈接可能對你有幫助http://stackoverflow.com/questions/32343183/retrofit-could-not-locate-converter-for-class-crashing-app/32652747#32652747 –