简体   繁体   English

Android Studio Google Cloud Endpoints运行/调试配置错误

[英]Android Studio Google Cloud Endpoints Run/Debug Config Error

I am a beginner for Android Cloud Endpoints. 我是Android Cloud Endpoints的初学者。 I am trying to create a backend module in Android Studio 1.0 RC2. 我正在尝试在Android Studio 1.0 RC2中创建一个后端模块。 Everything seems okay while creating a backend endpoint module ( https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints ). 创建后端端点模块( https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/HelloEndpoints )时,一切似乎都很好。 The gradle builds successfully. gradle构建成功。 But when I wanted to debug locally, I found the problem. 但是当我想在本地调试时,我发现了问题。 It said, "App Engine Gradle configuration not detected on module, maybe you need to Sync Project with Gradle". 它说:“模块上未检测到App Engine Gradle配置,也许您需要将项目与Gradle同步”。

I tried to rebuild the whole project, it builds successfully. 我试图重建整个项目,它构建成功。 But the error remains. 但是错误仍然存​​在。

This is the screenshot: https://www.dropbox.com/s/tvuv52ldmr0yzvs/Screen%20Shot%202014-11-27%20at%204.21.14%20pm.png?dl=0 这是屏幕截图: https : //www.dropbox.com/s/tvuv52ldmr0yzvs/Screen%20Shot%202014-11-27%20at%204.21.14%20pm.png?dl=0

Thank a lot. 非常感谢。

这是最近引入的错误 ,此错误已在Android Studio 1.0中修复。

I am not sure if it is the solution. 我不确定这是否是解决方案。 But this is what I did. 但这就是我所做的。 I created another new project (the problem happened in existing project that I migrated from Android Studio 0.8.9 to 1.0 RC2. I added new module for Google Cloud EndPoints. Initially it was same problem (there is same error in debug config as above, although it can build the whole project successfully.) But after I changed the build.gradle file in backend module to gradle-appengine-plugin:1.9.17 (latest), the new project backend was okay. 我创建了另一个新项目(该问题发生在从Android Studio 0.8.9迁移到1.0 RC2的现有项目中。我为Google Cloud EndPoints添加了新模块。最初是相同的问题(如上调试配置中存在相同的错误,虽然它可以成功构建整个项目。)但是在将后端模块中的build.gradle文件更改为gradle-appengine-plugin:1.9.17(最新)之后,新的项目后端就可以了。

dependencies { classpath 'com.google.appengine:gradle-appengine-plugin:1.9.17' } 依赖项{classpath'com.google.appengine:gradle-appengine-plugin:1.9.17'}

dependencies { appengineSdk 'com.google.appengine:appengine-java-sdk:1.9.17' 依赖项{appengineSdk'com.google.appengine:appengine-java-sdk:1.9.17'

 compile 'com.google.appengine:appengine-endpoints:1.9.17' compile 'com.google.appengine:appengine-endpoints-deps:1.9.17' compile 'javax.servlet:servlet-api:2.5' } 

I tried to change the build.gradle file in my migrated projects, but still failed. 我试图在迁移的项目中更改build.gradle文件,但仍然失败。 So, what I did was copy the content from new project 所以,我所做的就是从新项目中复制内容

backend.iml backend.iml

file into my migrated project backend.iml. 文件到我的迁移项目backend.iml中。 And it works. 而且有效。

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

相关问题 使用Android Studio的Google Cloud Endpoints对冒号(:)进行编码 - Encoding of colon (:) with Google Cloud Endpoints, Android Studio Google Cloud Endpoints Android客户端-身份验证错误 - Google Cloud Endpoints Android Client - Auth error 如何在Android Studio中使用Google端点写入Cloud SQL - How to write to Cloud SQL with Google Endpoints in Android Studio 如何在Android Studio中的多个项目中重用Google Cloud端点 - How to reuse google cloud endpoints in multiple projects in android studio Google Cloud端点框架与Android Studio和Gradle 5.1.1不兼容 - Google cloud endpoints framework not compatible with Android studio and gradle 5.1.1 将包装对象从Android发送到Google云端点时出错 - Error sending wrapper object from Android to Google cloud endpoints 将android应用连接到Google Cloud Endpoints时出错:找不到课程 - Error connecting android app to Google Cloud Endpoints: could not find class Android Studio在调试模式下仍使用签名配置“ release”运行 - Android studio run in debug mode still using signing config 'release' Android Studio Google Cloud凭证错误 - Android Studio Google Cloud Credential Error Google Cloud端点与Android - 缓存响应? - Google Cloud Endpoints with Android - Caching response?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM