2016-06-30 12 views
0

これは、現在のGradleレトロフィット2:Gradleのビルドエラー

compile 'com.squareup.retrofit:retrofit:2.0.0-beta2' 
compile 'com.squareup.okhttp3:okhttp:3.2.0' 
    compile 'com.squareup.okhttp:logging-interceptor:2.6.0' 
    compile 'com.squareup.retrofit:converter-gson:2.0.0-beta2' 
    compile 'com.squareup.retrofit:adapter-rxjava:2.0.0-beta2' 

のための改造2の私のビルド構成は、誰もが2を改造知っているように、私は以下のように次の新しいバージョンへとアップグレードしようとしていますベータ版の外にあります

compile 'com.squareup.retrofit2:retrofit:2.1.0' 
    compile 'com.squareup.okhttp:logging-interceptor:2.6.0' 
    compile 'com.squareup.retrofit2:converter-gson:2.1.0' 
    compile 'com.squareup.retrofit2:adapter-rxjava:2.1.0' 

javacIllegalArgumentException

+0

このようなレトロフィットの依存関係は完全に素晴らしいです(ただし、新しいバージョンのlogging-interceptorはありません)。エラーは他の場所にある必要があります。投稿メッセージouput。 –

+0

@R.Zagórskiそのような実行のために失敗しました。 'app:compileDevReleaseJavaWithJavac'> java.lang.illegalArgumentException:(java.lang.String) Sutirth

+0

おそらく、1つの関数の定義が、新しいバージョンのRetrofitで変更されました。 –

答えて

0

としてのGradleを構築しながら、私はあなたがbuild.g」に代わりjcenter mavenCentralを試すことができ、私は例外を取得私のGradleを構築することができませんradle ':

repositories { 
    //jcenter() 
    mavenCentral() 
} 
関連する問題