我有一个Xamarin应用程序和localhost API。我正在尝试从应用程序连接到API,但找不到它。我编辑了applicationhost.config文件,然后尝试了localhost,10.0.2.2并在通话中尝试了IP地址,但它没有用。
applicationhost.config
localhost
10.0.2.2
那么,如何配置简单的API访问?(API本身运行良好)
c# api android http xamarin
android ×1
api ×1
c# ×1
http ×1
xamarin ×1