@DELETE("/job/deletejob")
Observable<JobDeleteResponseModel> jobDelete( @Body JobDeleteRequestModel model);
Run Code Online (Sandbox Code Playgroud)
我收到此错误:
非身体HTTP方法不能包含@Body或@TypedOutput
谁能帮助我从这里出来?
我在库中使用@Retention和@StringDef注释我的一些方法,我面临一个奇怪的警告,我想了解.
在静态类中SIP,我使用此注释:
public static final String CODEC_SPEEX_16K = "speex/16000/1";
public static final String CODEC_SPEEX_8K = "speex/8000/1";
public static final String CODEC_SPEEX_32K = "speex/32000/1";
public static final String CODEC_ILBC_8K = "iLBC/8000/1";
public static final String CODEC_GSM_8K = "GSM/8000/1";
public static final String CODEC_PCMU_8K = "PCMU/8000/1";
public static final String CODEC_PCMA_8K = "PCMA/8000/1";
public static final String CODEC_G722_16K = "G722/16000/1";
@Retention(RetentionPolicy.CLASS)
@StringDef({
CODEC_SPEEX_16K,
CODEC_SPEEX_8K,
CODEC_SPEEX_32K,
CODEC_ILBC_8K,
CODEC_GSM_8K,
CODEC_PCMU_8K,
CODEC_PCMA_8K,
CODEC_G722_16K
})
public @interface CodecName {}
Run Code Online (Sandbox Code Playgroud)
编译很好,没有任何警告. …
的build.gradle(模块:APP)
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.3'
defaultConfig {
applicationId "com.example.beetel.App"
minSdkVersion 21
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
repositories {
mavenCentral() // jcenter() works as well because it pulls from Maven Central
maven{ url "https://jitpack.io"}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
//glide libraries
compile 'com.android.support:palette-v7:23.3.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.florent37:glidepalette:2.0.0'
compile 'com.github.bumptech.glide:okhttp-integration:1.3.1@aar'
// { transitive = true;}
// { exclude …Run Code Online (Sandbox Code Playgroud)