How to setup GCE development server using android studio 3.0

落爺英雄遲暮 提交于 2020-01-04 03:58:16

问题


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

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


回答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"

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

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

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

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

in order to solve this

modify the backend/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



来源:https://stackoverflow.com/questions/46954624/how-to-setup-gce-development-server-using-android-studio-3-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!