Android Studio を使用していますが、Android と Java のレスト クライアントであるRetrofitを使用したいと考えています。
build.gradle
ファイルの依存関係にレトロフィットを追加しました。したがって、プロジェクトで使用できますが、実行したい場合は、NoClassDefFoundError
forretrofit.RestAdapter$Builder
内部クラスがあります。
dependencies {
compile 'com.squareup.retrofit:retrofit:1.3.0'
}
よろしくお願いします。
ソリューションの編集:
- Android Studio を 4.0+ にアップデートします
- で注釈を有効にし
Preferences > Compiler > Annotation Processors > Enable Annotation processing
ます。