com.chaquo.python.PyException:ConnectionError:HTTPSConnectionPool主机='www.flipkart.com',端口= 443:url

问题描述

当我通过android studio在android mobile中安装python程序时,出现以下错误并且我的应用程序崩溃了。

com.chaquo.python.PyException: ConnectionError: HTTPSConnectionPool(host='www.flipkart.com',port=443): Max retries exceeded with url: /cello-novelty-big-plastic-free-standing-chest- 
drawers/p/itm30f968c84bc68? 
pid=CSDEFFMN2Y7ZDUGQ&lid=LSTCSDEFFMN2Y7ZDUGQ6GF2RX&marketplace=FLIPKART&pageUID=1603005810862 (Caused 
by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x898b8a78>: Failed to establish 
a new connection: [Errno 7] No address associated with hostname'))

此应用程序将从用户那里获取产品的网址并检查产品价格。

解决方法

在AndroidManifest.xml中编写一行以获取该应用程序使用Internet的权限。

此问题是由于您无法通过电话访问应用程序。

     <uses-permission android:name="android.permission.INTERNET" />

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...