appengine任务配置如下:
F = open('spendFile.txt', "r")
arr = [];
for c in F.readlines()[0].split(): #this turns the file into a string and creates a list of each word
arr.append(c)
people = []
amount = []
for i in range(0,len(arr)/3):
name = arr[i*3]
a = arr[i*3+2]
if(name not in people):
people.append(name)
amount.append(int(a))
else:
index = people.index(name)
old = amount[index]
new = old+int(a)
amount[index] = new
for i in range(0,len(people)):
print(people[i]+" "+str(amount[i]))
在同一个局域网连接中连接两台设备("笔记本电脑 - 运行Android Studio"以及#34;运行Android应用程序");
appengine {
downloadSdk = true
jvmFlags = ["-Ddatastore.backing_store=$localDbPath"]
httpPort = 8888
httpAddress = "0.0.0.0"
}
。仍然出现连接超时错误。Android Studio中缺少哪些设置?
答案 0 :(得分:3)
我在Android Studio中运行时遇到了相同的连接超时错误,但在Eclipse中没有发生。
以下是我为解决此类问题而采取的解决方案
解决方案1:
在模拟器中运行Android Studio App而不是Mobile Physical 设备
这将减少连接超时错误
解决方案2:
Android Manifest文件Internet权限更新和连接 与本地互联网Wifi
解决方案3:
Check your gradle version and its followed the below in Android Studio,
[https://cloud.google.com/appengine/docs/flexible/java/using-gradle][1]
Check your environment by satisfying the google norms
[https://cloud.google.com/appengine/docs/the-appengine-environments][1]