小编PN1*_*N10的帖子

@DELETE方法不支持(非body HTTP方法不能包含@Body或@TypedOutput.)

@DELETE("/job/deletejob")
 Observable<JobDeleteResponseModel> jobDelete( @Body JobDeleteRequestModel model);
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

非身体HTTP方法不能包含@Body或@TypedOutput

谁能帮助我从这里出来?

rx-java retrofit

49
推荐指数
6
解决办法
2万
查看次数

Android支持注释"应该有@Retention(RetentionPolicy.SOURCE)"

我在库中使用@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)

编译很好,没有任何警告. …

java android android-annotations

11
推荐指数
0
解决办法
1978
查看次数

错误:无法解决:com.github.bumptech.glide:glide:4.0.0-SNAPSHOT

的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)

github-api android-studio android-glide

7
推荐指数
1
解决办法
1万
查看次数