simpligility / android-maven-plugin

Maven Plugin for Android Application development and more
http://simpligility.github.io/android-maven-plugin/
Apache License 2.0
1.05k stars 394 forks source link

This version of the Play Developer API is no longer available #791

Open AceCoderLaura opened 4 years ago

AceCoderLaura commented 4 years ago

I tried to use the publish-apk goal to upload my .apk to the Play Store but I got this error:

[16:52:03] :     [Step 8/8] [INFO] ------------------------------------------------------------------------
[16:52:03] :     [Step 8/8] [INFO] BUILD FAILURE
[16:52:03] :     [Step 8/8] [INFO] ------------------------------------------------------------------------
[16:52:03] :     [Step 8/8] [INFO] Total time: 5.801s
[16:52:03] :     [Step 8/8] [INFO] Finished at: Tue Feb 04 16:52:03 AEDT 2020
[16:52:03] :     [Step 8/8] [INFO] Final Memory: 16M/151M
[16:52:03] :     [Step 8/8] [INFO] ------------------------------------------------------------------------
[16:52:03] :     [Step 8/8] [Maven Watcher] building report document...
[16:52:03] :     [Step 8/8] [Maven Watcher] building report document done
[16:52:03] :     [Step 8/8] [Maven Watcher] writing report to C:\BuildAgent\temp\buildTmp\maven-build-info.xml
[16:52:03] :     [Step 8/8] [Maven Watcher] done writing report
[16:52:03]W:     [Step 8/8] [ERROR] Failed to execute goal com.simpligility.maven.plugins:android-maven-plugin:4.6.0:publish-apk (default-cli) on project publish: 410 Gone
[16:52:03]W:     [Step 8/8] [ERROR] {
[16:52:03]W:     [Step 8/8] [ERROR] "code" : 410,
[16:52:03]W:     [Step 8/8] [ERROR] "errors" : [ {
[16:52:03]W:     [Step 8/8] [ERROR] "domain" : "androidpublisher",
[16:52:03]W:     [Step 8/8] [ERROR] "message" : "This version of the Play Developer API is no longer available. For more information see https://android-developers.googleblog.com/2019/03/changes-to-google-play-developer-api.html.",
[16:52:03]W:     [Step 8/8] [ERROR] "reason" : "apiDeprecated"
[16:52:03]W:     [Step 8/8] [ERROR] } ],
[16:52:03]W:     [Step 8/8] [ERROR] "message" : "This version of the Play Developer API is no longer available. For more information see https://android-developers.googleblog.com/2019/03/changes-to-google-play-developer-api.html."
[16:52:03]W:     [Step 8/8] [ERROR] }
[16:52:03]W:     [Step 8/8] [ERROR] -> [Help 1]
[16:52:03]W:     [Step 8/8] [ERROR] 
[16:52:03]W:     [Step 8/8] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[16:52:03]W:     [Step 8/8] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[16:52:03]W:     [Step 8/8] [ERROR] 
[16:52:03]W:     [Step 8/8] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[16:52:03]W:     [Step 8/8] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

FULL LOG

mosabua commented 4 years ago

We probably have to either remove that goal or rewrite it. Not sure if anybody is using it.

AceCoderLaura commented 4 years ago

All the TeamCity tutorials on the 'net for automatically uploading APKs either use Gradle or maven + this plugin. People are probably using it or going to use it in the future as long as those articles are out there.

I ended up using this in the end. Might be good reference code for resolving this issue if you choose to repair it.