如何使用android studio 3.0设置GCE开发服务器

时间:2023-02-11 23:12:04

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

只需安装新的android studio 3.0,我就无法在android studio模块中找到google cloud端点。

Please how to set up Google Cloud Endpoint with the latest android studio 3.0

请问如何使用最新的android studio 3.0设置Google Cloud Endpoint

1 个解决方案

#1


1  

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"

在此链接中由GoogleCloudPlatform专门为endpoints-framework-gradle-plugin提供的Read.MD由于他们发现的问题而进行了一些修改...它对我有用,因为我有同样的问题,做这些修改直到这个line“如果你有一个特别复杂的buildscript类路径带来了许多依赖性与隐藏的错误消息,如”

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

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

here is the link : https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/blob/master/ANDROID_README.md

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

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

你可能会面临jsr305左右的问题......

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

在build.gradle(app)中添加configurations.all,如下所示

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

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

您可能还有另一个问题叫做无法启动进程工作目录............................. explosion-app文件夹不存在

in order to solve this

为了解决这个问题

modify the backend/backend.iml

修改后端/ backend.iml

Change:

更改:

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

To:

至:

<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

如果你遇到任何事情让我知道我一直在经历命中和错过,所以我遇到了一些可能会发生的问题

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”部分特别是“运行”部分,因为它告诉您需要使用gradle任务appengineStart运行本地开发服务器,该任务以非阻塞模式启动开发服务器

#1


1  

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"

在此链接中由GoogleCloudPlatform专门为endpoints-framework-gradle-plugin提供的Read.MD由于他们发现的问题而进行了一些修改...它对我有用,因为我有同样的问题,做这些修改直到这个line“如果你有一个特别复杂的buildscript类路径带来了许多依赖性与隐藏的错误消息,如”

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

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

here is the link : https://github.com/GoogleCloudPlatform/endpoints-framework-gradle-plugin/blob/master/ANDROID_README.md

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

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

你可能会面临jsr305左右的问题......

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

在build.gradle(app)中添加configurations.all,如下所示

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

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

您可能还有另一个问题叫做无法启动进程工作目录............................. explosion-app文件夹不存在

in order to solve this

为了解决这个问题

modify the backend/backend.iml

修改后端/ backend.iml

Change:

更改:

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

To:

至:

<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

如果你遇到任何事情让我知道我一直在经历命中和错过,所以我遇到了一些可能会发生的问题

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”部分特别是“运行”部分,因为它告诉您需要使用gradle任务appengineStart运行本地开发服务器,该任务以非阻塞模式启动开发服务器