简体   繁体   English

在Android Studio中部署Google App引擎

[英]Deploying google app engine in Android Studio

I am trying to follow the tutorial on https://cloud.google.com/tools/android-studio/app_engine/run_test_deploy . 我正在尝试按照https://cloud.google.com/tools/android-studio/app_engine/run_test_deploy上的教程进行操作。 When I try and do the "Deploying Backends" part I get the following error in AS: 当我尝试执行“部署后端”部分时,在AS中收到以下错误:

Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=chdryra-reviewer&version=1& 404 Not Found This application does not exist (app_id=u'chdryra-reviewer'). 无法更新应用程序:错误发布到URL: https ://appengine.google.com/api/appversion/create?app_id=chdryra-reviewer&version=1 & 404找不到此应用程序不存在(app_id = u'chdryra-reviewer' )。

This application does exist of course in the google developer console but when I go to https://console.cloud.google.com/appengine?project=chdryra-reviewer I get the following error: 这个应用程序确实确实存在于Google开发人员控制台中,但是当我转到https://console.cloud.google.com/appengine?project=chdryra-reviewer时 ,出现以下错误:

This operation is not possible because no App Engine application was found for this project. 由于找不到此项目的App Engine应用程序,因此无法执行此操作。

Any insight on what I may be doing wrong would be greatly appreciated! 对于我可能在做错的任何见解将不胜感激!

Thanks, Riz 谢谢,里兹

Take a look at this tutorial and sample app instead: https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints 请看一下本教程和示例应用程序: https : //github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints

I found it much more helpful. 我发现它更有帮助。

Also, if you cannot see your project in the Google Developers Console, then I am sorry to say you cannot upload your project! 另外,如果您无法在Google Developers Console中看到您的项目,那么很遗憾地说您无法上传项目! For help, take a look at this great series of tutorials for Android Studio and Cloud Endpoints (because that is what I deduce you are using) on how to set all that up and get rolling with GAE + Cloud Endpoints!: 为了寻求帮助,请看一下有关Android Studio和Cloud Endpoints的一系列精彩教程(因为这是我推断您正在使用的教程),以了解如何设置所有内容以及如何使用GAE + Cloud Endpoints滚动!:

http://rominirani.com/2014/01/10/google-cloud-endpoints-tutorial-part-1/ http://rominirani.com/2014/01/10/google-cloud-endpoints-tutorial-part-1/

After posting on Google Cloud Platform Support I found out my project was created using an old deprecated system as an "API project" (I created it 2 years ago) which doesn't allow Cloud integration. 在Google Cloud Platform支持上发布后,我发现我的项目是使用旧的不推荐使用的系统作为“ API项目”(我在2年前创建的)创建的,该系统不允许进行Cloud集成。 I had to delete it and create a new one. 我必须删除它并创建一个新的。 This fixed the problem. 这解决了问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM