Reputation:
MyApi.Builder builder = new MyApi.Builder(AndroidHttp.newCompatibleTransport(), new AndroidJsonFactory(), null)
.setRootUrl("http://10.0.2.2:8080/_ah/api/")
Upvotes: 0
Views: 42
Reputation: 2184
You need to use the internal ip address of the machine which is running the appengine server and you have to put the following line to your gradle build file of your appengine project
appengine {
.....
httpAddress = '0.0.0.0'
......
}
Upvotes: 1