Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些服务,它的唯一工作方式是在 AndroidManifest.xml 中定义它。但是,如果我不注册它,那么我希望日志中的某个地方会出现错误。这是真的吗,如果是的话,错误在哪里?如果不是,那么没有记录错误是否合理?
它应该做一个日志。我认为它说明了一些类似的东西
找不到 .YourServiceName 您是否在清单中声明了此项目?
在您致电时,您的日志中应该有类似的内容startService();
startService();