“cannot find symbol method setBatchPath(String)” in the generated source from generated endpoint

后端 未结 3 991
天涯浪人
天涯浪人 2020-12-30 01:48

For an unknown reason, when I tried to build my Google App Engine endpoints, I get these errors in all of the API java files generated by Android Studio:

Err

相关标签:
3条回答
  • 2020-12-30 01:56

    Same thing happened to me this morning.

    I resolved it by adding this in my backend project

    appengine {
        endpoints {
            googleClientVersion = '1.23.0'
        }
    }
    

    and updating this version in my app gradle file.

    implementation('com.google.api-client:google-api-client-android:1.23.0')
    
    0 讨论(0)
  • 2020-12-30 01:59

    Faced the same problem. I upgraded google client libs to 1.23.0 and it worked (earlier was 1.22.0)

    compile 'com.google.api-client:google-api-client:1.23.0'
    compile 'com.google.http-client:google-http-client-android:1.23.0'
    
    0 讨论(0)
  • 2020-12-30 02:02

    We already had these in our backend build.gradle:

    dependencies {
        compile 'com.google.api-client:google-api-client:+'
        compile 'com.google.api-client:google-api-client-android:+'
        compile 'com.google.http-client:google-http-client:+'
        compile 'com.google.http-client:google-http-client-android:+'
    }
    

    All we needed was adding:

    appengine {
        endpoints {
            googleClientVersion = '1.23.0'
        }
    }
    

    But it'd have been nice if Google didn't break our codes every once in awhile out of the blue and wasting hours of development time!

    0 讨论(0)
提交回复
热议问题