当 运行 本地主机上的应用引擎使用 android 设备和 "Not Emulator" 时,地址应该是什么

what should be the address when running the appengine on localhost using android device and "Not Emulator"

MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)

.setRootUrl("http://10.0.2.2:8080/_ah/api/")

您需要使用作为 运行 appengine 服务器的机器的内部 ip 地址,并且您必须将以下行添加到您的 gradle appengine 项目的构建文件中

appengine {
 .....
 httpAddress = '0.0.0.0'
 ......
}