packages unavailable无法查看源码

本文介绍了解决在Android开发中遇到的packagesunavailable无法查看源码的问题。通过在SDK Manager中启用Show Package Details并勾选Source for Android选项,用户可以下载所需的源码包。完成下载后,即可成功查看相关API的源码。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

packages unavailable无法查看源码

  1. 打开sdk manager
  2. 将show Package details 勾选
  3. 找到对应sdk 将source for android 勾选 然后确定后会下载资源
  4. 下载完成后,就可以看见源码了 不会是 throw exception语句了
    注意
    api32还有source for android 需要选择其他的api 可以将对应的api和source文件在sdk管理器中下载好之后 再去module build.gradle中将compileSdk 和targetSdk 修改成对应的api版本
C:\Users\Tonl5\AppData\Local\Programs\Python\Python311\Lib\site-packages\.venv\Scripts\python.exe C:\Users\Tonl5\PycharmProjects\PythonProject\text.py Traceback (most recent call last): File "C:\Users\Tonl5\AppData\Local\Programs\Python\Python311\Lib\site-packages\.venv\Lib\site-packages\gensim\models\fasttext.py", line 264, in <module> from gensim.models.fasttext_corpusfile import train_epoch_sg, train_epoch_cbow ImportError: DLL load failed while importing fasttext_corpusfile: 找不到指定的模块。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Users\Tonl5\PycharmProjects\PythonProject\text.py", line 14, in <module> from gensim import corpora, models File "C:\Users\Tonl5\AppData\Local\Programs\Python\Python311\Lib\site-packages\.venv\Lib\site-packages\gensim\__init__.py", line 11, in <module> from gensim import parsing, corpora, matutils, interfaces, models, similarities, utils # noqa:F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tonl5\AppData\Local\Programs\Python\Python311\Lib\site-packages\.venv\Lib\site-packages\gensim\models\__init__.py", line 23, in <module> from .fasttext import FastText # noqa:F401 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Tonl5\AppData\Local\Programs\Python\Python311\Lib\site-packages\.venv\Lib\site-packages\gensim\models\fasttext.py", line 266, in <module> raise utils.NO_CYTHON RuntimeError: Compiled extensions are unavailable. If you've installed from a package, ask the package maintainer to include compiled extensions. If you're building Gensim from source yourself, install Cython and a C compiler, and then run `python setup.py build_ext --inplace` to retry. 进程已结束,退出代码为 1
最新发布
05-11
Traceback (most recent call last): File "D:\英语六级&论文带读\知识图谱\26.第二十六章 知识图谱实战系列\第4节:使用python操作neo4j实例\pandasDemo\invoice_neo4j.py", line 71, in <module> create_data = DataToNeo4j() ^^^^^^^^^^^^^ File "D:\英语六级&论文带读\知识图谱\26.第二十六章 知识图谱实战系列\第4节:使用python操作neo4j实例\pandasDemo\dataToNeo4jClass\DataToNeo4jClass.py", line 20, in __init__ self.graph.delete_all() File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\database.py", line 575, in delete_all self.run("MATCH (a) DETACH DELETE a") File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\database.py", line 405, in run return self.auto().run(cypher, parameters, **kwparameters) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\database.py", line 989, in run result = self._connector.auto_run(cypher, parameters, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\client\__init__.py", line 1338, in auto_run cx = self._acquire(graph_name) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\client\__init__.py", line 1111, in _acquire return self._acquire_rw(graph_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\client\__init__.py", line 1203, in _acquire_rw ro_profiles, rw_profiles = self._get_profiles(graph_name, readonly=False) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\client\__init__.py", line 1016, in _get_profiles self.refresh_routing_table(graph_name) File "C:\Users\HONOR\AppData\Roaming\Python\Python311\site-packages\py2neo\client\__init__.py", line 1064, in refresh_routing_table raise ServiceUnavailable("Cannot connect to any known routers") py2neo.errors.ServiceUnavailable: Cannot connect to any known routers 查找一下问题
05-11
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值