如何使用Android Studio 3.0设置GCE开发服务器 [英] How to setup GCE development server using android studio 3.0

查看:136
本文介绍了如何使用Android Studio 3.0设置GCE开发服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需安装新的 android studio 3.0 ,而我在android studio模块中找不到 google cloud端点.

Just install new android studio 3.0 and I cannot find google cloud endpoint in android studio module.

请如何使用最新的 android studio 3.0

推荐答案

在此链接 Read.MD GoogleCloudPlatform 提供,专门用于端点- framework-gradle-plugin 由于发现了一些问题而进行了一些修改...对我来说是有效的,因为我遇到了同样的问题,请进行修改,直到这一行如果您引入了一个特别复杂的buildscript类路径与诸如

In This link the Read.MD That is Provided By GoogleCloudPlatform specifically for endpoints-framework-gradle-plugin has a few modifications due to issue they have found ... It Worked For me as i had the same issue , do the modifications until this line "If you have a particularly complicated buildscript classpath bringing in a lot of dependencies with cryptic error messages like"

清理并构建您的应用,然后尝试运行您的后端模块

clean and build your app and try to run your backend module

这是链接: https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/blob/master/ANDROID_README.md

您可能会遇到jsr305左右的问题...

you might face an issue of jsr305 or so ...

在您的build.gradle(应用程序)中添加configurations.all,如下所示

add configurations.all in your build.gradle (app) as below

android {
configurations.all {
        resolutionStrategy.force    'com.google.code.findbugs:jsr305:1.3.9'
    }
}

您可能会遇到另一个问题 无法启动进程工作目录............................. exploded-app文件夹不存在

you might another issue called Can't start process working directory ............................. exploded-app folder doesn't exist

为了解决这个问题

修改backend/backend.iml

modify the backend/backend.iml

更改:

<option name="WAR_DIR" value="$MODULE_DIR$/build/exploded-app" />

收件人:

<option name="WAR_DIR" value="$MODULE_DIR$/build/exploded-backend" />

如果您遇到任何问题,请让我知道我一直在遇到麻烦,所以我遇到了您可能会遇到的一些问题

if you faced anything let me know i have been going through hit and miss so i faced some issues that might occur to you

注意:请特别检查""Android Studio""部分"运行"部分,因为它告诉您需要使用gradle任务运行本地开发服务器 appengineStart ,它以非阻塞模式启动开发服务器

note: check the "Android Studio" section specially the "Run" part because it's telling you that you need to run the local development server using the gradle task appengineStart which starts the development server in non-blocking mode

这篇关于如何使用Android Studio 3.0设置GCE开发服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆