我正在尝试在真实设备上调试helloword示例.经过大量的搜索,我设法做了一些设置.
我在真实设备上调试了什么:
LOCAL_APP_ENGINE_SERVER_URL_FOR_ANDROID值更改为http://192.168.1.107:8888(我的计算机IP地址)--address=192.168.1.107运行配置程序参数现在看起来像--address=192.168.1.107 --port=8888 "<path-to-project>/war"http://192.168.1.107:8888/_ah/admin/不幸的是,当我尝试在真实设备上进行通信时我得到的是:
GoogleJsonResponseException:500无法检索状态为404的API配置
附加了堆栈跟踪的完整错误html内容:
com.google.api.client.googleapis.json.GoogleJsonResponseException: 500 Failed to retrieve API configs with status: 404
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Failed to retrieve API configs with status: 404</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /_ah/api/userendpoint/v1/user/jacek@gmail.com/11224. Reason:
<pre> Failed to retrieve API configs with status: 404</pre></p><h3>Caused by:</h3><pre>java.io.IOException: Failed to retrieve API configs with status: 404
at com.google.api.server.spi.tools.devserver.ApiServlet.getApiConfigSources(ApiServlet.java:102)
at com.google.api.server.spi.tools.devserver.ApiServlet.initConfigsIfNecessary(ApiServlet.java:67)
at com.google.api.server.spi.tools.devserver.RestApiServlet.service(RestApiServlet.java:117)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at …Run Code Online (Sandbox Code Playgroud)