[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-4052":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":22,"defaultBranch":23,"hasWiki":21,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":28,"discoverSource":29},4052,"stetho","facebook\u002Fstetho","facebook","Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.","http:\u002F\u002Ffacebook.github.io\u002Fstetho\u002F",null,"Java",12672,1115,370,65,0,2,6,44.14,"MIT License",true,false,"main",[],"2026-06-12 02:00:58","# Stetho [![Build Status](https:\u002F\u002Ftravis-ci.org\u002Ffacebook\u002Fstetho.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002Ffacebook\u002Fstetho)\n\n[Stetho](https:\u002F\u002Ffacebook.github.io\u002Fstetho) is a sophisticated debug bridge for Android applications. When enabled,\ndevelopers have access to the Chrome Developer Tools feature natively part of\nthe Chrome desktop browser. Developers can also choose to enable the optional\n`dumpapp` tool which offers a powerful command-line interface to application\ninternals.\n\nOnce you complete the set-up instructions below, just start your app and point\nyour laptop browser to `chrome:\u002F\u002Finspect`.  Click the \"Inspect\" button to\nbegin.\n\n## Set-up\n\n### Download\nDownload [the latest JARs](https:\u002F\u002Fgithub.com\u002Ffacebook\u002Fstetho\u002Freleases\u002Flatest) or grab via Gradle:\n```groovy\nimplementation 'com.facebook.stetho:stetho:1.6.0'\n```\nor Maven:\n```xml\n\u003Cdependency>\n  \u003CgroupId>com.facebook.stetho\u003C\u002FgroupId>\n  \u003CartifactId>stetho\u003C\u002FartifactId>\n  \u003Cversion>1.6.0\u003C\u002Fversion>\n\u003C\u002Fdependency>\n```\n\nOnly the main `stetho` dependency is strictly required; however, you may also wish to use one of the network helpers:\n\n```groovy\nimplementation 'com.facebook.stetho:stetho-okhttp3:1.6.0'\n```\nor:\n```groovy\nimplementation 'com.facebook.stetho:stetho-urlconnection:1.6.0'\n```\n\nYou can also enable a JavaScript console with:\n\n```groovy\nimplementation 'com.facebook.stetho:stetho-js-rhino:1.6.0'\n```\nFor more details on how to customize the JavaScript runtime see [stetho-js-rhino](stetho-js-rhino\u002F).\n\n### Putting it together\nIntegrating with Stetho is intended to be seamless and straightforward for\nmost existing Android applications.  There is a simple initialization step\nwhich occurs in your `Application` class:\n\n```java\npublic class MyApplication extends Application {\n  public void onCreate() {\n    super.onCreate();\n    Stetho.initializeWithDefaults(this);\n  }\n}\n```\nAlso ensure that your `MyApplication` Java class is registered in your `AndroidManifest.xml` file, otherwise you will not see an \"Inspect\" button in `chrome:\u002F\u002Finspect\u002F#devices` :\n\n```xml\n\u003Cmanifest\n        xmlns:android=\"http:\u002F\u002Fschemas.android.com\u002Fapk\u002Fres\u002Fandroid\"\n        ...>\n        \u003Capplication\n                android:name=\"MyApplication\"\n                ...>\n         \u003C\u002Fapplication>\n\u003C\u002Fmanifest>                \n```\n\nThis brings up most of the default configuration but does not enable some\nadditional hooks (most notably, network inspection).  See below for specific\ndetails on individual subsystems.\n\n### Enable network inspection\nIf you are using the popular [OkHttp](https:\u002F\u002Fgithub.com\u002Fsquare\u002Fokhttp)\nlibrary at the 3.x release, you can use the\n[Interceptors](https:\u002F\u002Fgithub.com\u002Fsquare\u002Fokhttp\u002Fwiki\u002FInterceptors) system to\nautomatically hook into your existing stack.  This is currently the simplest\nand most straightforward way to enable network inspection:\n\n```java\nnew OkHttpClient.Builder()\n    .addNetworkInterceptor(new StethoInterceptor())\n    .build()\n```\n\nNote that okhttp 2.x will work as well, but with slightly different syntax and you must use the `stetho-okhttp` artifact (not `stetho-okhttp3`).\n\nAs interceptors can modify the request and response, add the Stetho interceptor after all others to get an accurate view of the network traffic.\n\nIf you are using `HttpURLConnection`, you can use `StethoURLConnectionManager`\nto assist with integration though you should be aware that there are some\ncaveats with this approach.  In particular, you must explicitly add\n`Accept-Encoding: gzip` to the request headers and manually handle compressed\nresponses in order for Stetho to report compressed payload sizes.\n\nSee the [`stetho-sample` project](stetho-sample) for more details.\n\n## Going further\n\n### Custom dumpapp plugins\nCustom plugins are the preferred means of extending the `dumpapp` system and\ncan be added easily during configuration.  Simply replace your configuration\nstep as such:\n\n```java\nStetho.initialize(Stetho.newInitializerBuilder(context)\n    .enableDumpapp(new DumperPluginsProvider() {\n      @Override\n      public Iterable\u003CDumperPlugin> get() {\n        return new Stetho.DefaultDumperPluginsBuilder(context)\n            .provide(new MyDumperPlugin())\n            .finish();\n      }\n    })\n    .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(context))\n    .build())\n```\n\nSee the [`stetho-sample` project](stetho-sample) for more details.\n\n## Improve Stetho!\nSee the [CONTRIBUTING.md](CONTRIBUTING.md) file for how to help out.\n\n## License\nStetho is MIT-licensed. See LICENSE file for more details.\n","Stetho 是一个为 Android 应用设计的调试桥接工具，它能够使开发者通过 Chrome 开发者工具来调试应用。其核心功能包括提供对 Chrome 开发者工具的访问权限，以及可选的`dumpapp`命令行工具，后者能深入查看应用程序内部细节。此外，Stetho 还支持网络请求监控等功能，特别适用于使用 OkHttp 的项目。对于希望在开发过程中提高调试效率、快速定位问题或优化性能的Android开发者来说，Stetho是一个非常有用的工具。","2026-06-11 02:58:07","top_language"]