百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
X

xCrash

> 编程语言
开源

xCrash 为 Android 应用程序提供了捕获 Java 崩溃、本机崩溃和 ANR 的功能。不需要 root 权限或任何系统权限。

3.9K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

xCrash 为 Android 应用程序提供了捕获 Java 崩溃、本机崩溃和 ANR 的功能。不需要 root 权限或任何系统权限。

# xCrash xCrash provides the Android app with the ability to capture java crash, native crash and ANR. No root permission or any system permissions are required.

xCrash can generate a tombstone file (similar format as Android system's tombstone file) in the directory you specified when the app process crashes or ANRs. xCrash has been used in many Android apps (including iQIYI video) on different platforms (mobile, tablet, TV) of [iQIYI](http://www.iqiyi.com/) for many years. [README 中文版](README.zh-CN.md) ## Features * Support Android 4.1 - 11 (API level 16 - 30). * Support armeabi-v7a, arm64-v8a, x86 and x86_64. * Capturing java crash, native crash and ANR. * Dumping detailed statistics about process, threads, memory, FD and network. * Setting which thread's info should be dumped via regular expressions. * Do not require root permission or any system permissions. ## Tombstone File Previews * [java crash](doc/tombstone_java.txt) * [native crash (armeabi-v7a)](doc/tombstone_native_armeabi-v7a.txt) * [native crash (arm64-v8a)](doc/tombstone_native_arm64-v8a.txt) * [native crash (x86)](doc/tombstone_native_x86.txt) * [native crash (x86_64)](doc/tombstone_native_x86_64.txt) * [ANR (armeabi-v7a)](doc/tombstone_anr_armeabi-v7a.txt) * [ANR (arm64-v8a)](doc/tombstone_anr_arm64-v8a.txt) * [ANR (x86)](doc/tombstone_anr_x86.txt) * [ANR (x86_64)](doc/tombstone_anr_x86_64.txt) ## Overview Maps ### Architecture

### Capture Native Crash

### Capture ANR

## Usage #### 1. Add dependency. ```Gradle dependencies { implementation 'com.iqiyi.xcrash:xcrash-android-lib:3.0.0' } ``` #### 2. Specify one or more ABI(s) you need. ```Gradle android { defaultConfig { ndk { abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64' } } } ``` #### 3. Initialize xCrash. > Java ```Java public class MyCustomApplication extends Application { @Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); xcrash.XCrash.init(this); } } ``` > Kotlin ```Kotlin class MyCustomApplication : Application() { override fun attachBaseContext(base: Context) { super.attachBaseContext(base) xcrash.XCrash.init(this) } } ``` Tombstone files will be written to `Context#getFilesDir() + "/tombstones"` directory by default. (usually in: `/data/data/PACKAGE_NAME/files/tombstones`) There is a more practical and complex sample app in the [xcrash_sample](xcrash_sample) folder. ## Build If you want to build xCrash from source code. Follow this guide: #### Build AAR library. ``` ./gradlew :xcrash_lib:build ``` ## Support * [GitHub Issues](https://github.com/iqiyi/xCrash/issues) * [GitHub Discussions](https://github.com/iqiyi/xCrash/discussions) * Email: [email protected], [email protected] ## Contributing See [xCrash Contributing Guide](CONTRIBUTING.md). ## License xCrash is MIT licensed, as found in the [LICENSE](LICENSE) file. xCrash documentation is Creative Commons licensed, as found in the [LICENSE-docs](LICENSE-docs) file.

GitHub Issues· 66 开放

在 GitHub 查看全部
  • #144

    Android 12+开启CFA的设备上运行arm64的包会无法抓取完整堆栈

    更新于 2026年2月3日
  • #154

    125540

    更新于 2026年1月29日
  • #149

    Android 13 aarch64包_Unwind_Backtrace获取堆栈时会发生二次崩溃,需将ndk从21升级到23或手动升级libunwind.a

    更新于 2025年11月27日
  • #138

    Android15适配:支持 16 KB 页面大小的问题

    更新于 2025年11月6日
  • #145

    Libraries that do not support 16 KB issue in Android 15

    更新于 2025年11月6日
  • #152

    android 16KB

    更新于 2025年11月6日
  • #150

    Luuu

    更新于 2025年9月17日
  • #113

    鸿蒙系统统计不到吗?

    更新于 2025年8月8日
  • #135

    是否支持海外googleplay发布

    更新于 2025年7月29日
  • #143

    子进程 java crash 无法捕获的到?

    更新于 2025年6月16日

核心特点

  • •Support Android 4.1 - 11 (API level 16 - 30).
  • •Support armeabi-v7a, arm64-v8a, x86 and x86_64.
  • •Capturing java crash, native crash and ANR.
  • •Dumping detailed statistics about process, threads, memory, FD and network.
  • •Setting which thread's info should be dumped via regular expressions.
  • •Do not require root permission or any system permissions.
  • •java crash
  • •native crash (armeabi-v7a)
  • •native crash (arm64-v8a)
  • •native crash (x86)

> 标签

Candroidanrcrashcrash-reporting

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言