Failed to retrieve API configs with status: 404 - Google App Engine

前端 未结 3 1957
闹比i
闹比i 2021-01-01 17:27

I\'m trying to debug the helloword sample on real device. After lots of searching, I\'ve managed to do some settings.

What I did to debug on real device:

    <
相关标签:
3条回答
  • 2021-01-01 18:02

    Accepted answer solves the issue. Mentioning steps for deploying GAE from Android studio with screenshots hoping it would save save some more dev time. In Android studio.

    1. Select your Google App engine module.
    2. Then select the dropdown and click in edit configurations
    3. Unselect the check box saying "Synchronize with build.gradle configuration"
    4. In place of server address put "0.0.0.0" (accept all connections).
    5. Select Apply and Ok. Rerun the server.

    0 讨论(0)
  • 2021-01-01 18:12

    How can i access my localhost from my android device?

    USB doesn't provide network to mobile device. If it's connected to your wifi, then hit your laptop address provided by the router. If it's connected to your mobile network, then first find out your router external IP address, then forward some port to that 10.0.2.2:portno and finally you'll be able to see that server from your device.

    You used 192.168.1.107 as your IP, which looks like an internal IP address to me. Try if setting your external IP address fixes the problem.

    0 讨论(0)
  • 2021-01-01 18:22

    Actually just setting --address=0.0.0.0 --port=8888 in launch configuration params fixed the issue.

    Rest of the settings stayed as in the question.

    0 讨论(0)
提交回复
热议问题