Home  >  Q&A  >  body text

一般怎样查看Android系统源码(接口找不到实现类)?

比如我在一个普通的工程中,查看Webview的源码,但是里面好多接口找不到实现类,按Ctrl-T没反应。正确的阅读源码的姿势是怎样的呢?是不是要上Linux直接Build Android源码呢?请分享一下经验,谢谢!

PHPzPHPz2727 days ago716

reply all(3)I'll reply

  • 怪我咯

    怪我咯2017-04-17 17:46:29

    In fact, there are tutorials everywhere, refer to this article to use Android Studio to import source code

    However, if you are not lucky in compilation, you will encounter various problems, which can basically be solved with a lot of Google

    reply
    0
  • PHPz

    PHPz2017-04-17 17:46:29

    The access interface is in the web background, not in your app project

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:46:29

    Different IDEs are different. I take Android Studio as an example. After finding the interface, press control+H (mac) to view the specific implementation class. If you are not on a mac system, you can search for the Call Hierarchy shortcut key by pressing shift twice

    reply
    0
  • Cancelreply