出现You have tried to change the API from what has been previously approved. To make these errors go away, you have two choices: 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc) to the new methods, etc. shown in the above diff. 2. You can update current.txt and/or removed.txt by executing the following command: m api-stubs-docs-non-updatable-update-current-api To submit the revised current.txt to the main Android repository, you will need approval.怎么解决
时间: 2024-02-29 14:57:01 浏览: 16
这个错误信息通常表示你在尝试修改已经被批准的API。为了解决这个问题,你可以选择以下两个方法:
1. 为新的方法添加`@hide` javadoc注释(删除 `@SystemApi / @TestApi / etc`),这会将新的API更改隐藏起来,避免出现错误。
2. 执行以下命令更新 `current.txt` 和/或 `removed.txt`: `m api-stubs-docs-non-updatable-update-current-api`。这将更新API文档,并允许你提交修订后的 `current.txt` 到主Android存储库。但是,你需要得到批准。
建议你查阅Android开发文档或者寻求Android开发社区的帮助,以确保你遵循了正确的API修改流程。
相关问题
You have tried to change the API from what has been previously approved. To make these errors go away, you have two choices: 1. You can add '@hide' javadoc comments (and remove @SystemApi/@TestApi/etc) to the new methods, etc. shown in the above diff. 2. You can update current.txt and/or removed.txt by executing the following command: m api-stubs-docs-non-updatable-update-current-api To submit the revised current.txt to the main Android repository, you will need approval.
这似乎是一个关于 Android API 的问题。从你的描述中看,你可能尝试更改了之前已经批准的 API,导致出现了错误。为了解决这个问题,你有两个选择:
1. 在新方法中添加 '@hide' javadoc 注释(并删除 @SystemApi/@TestApi 等),这样就可以消除这些错误。
2. 通过执行以下命令更新 current.txt 和/或 removed.txt:
m api-stubs-docs-non-updatable-update-current-api
要将修订后的 current.txt 提交到主 Android 存储库,您需要获得批准。
not enough memory: you tried to allocate 14934456 bytes.
引用\[1\]:RuntimeError:\[enforce fail at .. c10\core\impl\alloc_cpu.cpp:72\] data.DefaultCPUAllocator: not enough memory:you tried to allocate 58982400 bytes. 引用\[2\]:电脑内存明明还有很多,程序却显示内存不足,报错RuntimeError:\[enforce fail at .. c10\core\impl\alloc_cpu.cpp:72\] data.DefaultCPUAllocator: not enough memory:you tried to allocate 58982400 bytes. 引用\[3\]:这个错误通常表示程序尝试分配的内存超过了可用内存。这可能是由于程序中的内存泄漏或者内存碎片导致的。您可以尝试以下方法解决这个问题:检查程序中是否有内存泄漏或者内存碎片,如果有,及时修复。检查您的电脑是否有足够的可用内存,如果没有,可以关闭一些不必要的程序或者升级硬件。尝试使用更高效的算法或者数据结构来减少内存使用量。
问题: not enough memory: you tried to allocate 14934456 bytes. 该如何解决?
回答: 这个错误通常表示程序尝试分配的内存超过了可用内存。您可以尝试以下方法解决这个问题:检查程序中是否有内存泄漏或者内存碎片,如果有,及时修复。检查您的电脑是否有足够的可用内存,如果没有,可以关闭一些不必要的程序或者升级硬件。尝试使用更高效的算法或者数据结构来减少内存使用量。\[3\]
#### 引用[.reference_title]
- *1* *2* *3* [程序却显示内存不足,报错DefaultCPUAllocator: not enough memory:you tried to allocate 58982400 bytes.](https://blog.csdn.net/qq_15969343/article/details/130015286)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]