Giter Site home page Giter Site logo

lizcgithub / breakpad-for-android Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yinyinnie/breakpad-for-android

0.0 2.0 0.0 742 KB

Catch native crash exception. your android app can directly use this project. Don't care about original google breakpad.

Makefile 14.84% C 22.21% Shell 5.53% C++ 57.42%

breakpad-for-android's Introduction

Breakpad-for-android

这是库简单封装了Google Breakpad, 加上jni层,让你一键集成Breakpad到项目中

如何使用

下载NDK

访问Android官网,从这个网页,你可以直接下载对应操作系统的NDK

配置NDK

解压NDK,配置环境变量,以Mac为例,配置如下:

export NDK_HOME=/Users/nieyinyin/android-ndk-r10e
export PATH=${PATH}:${NDK_HOME}

编译

进入工程的根目录,直接运行: ./build.sh

编译后的.so文件所在:sample/breakpad/libs

集成到App

  1. 拷贝.so文件到你项目的app/libs/
  2. 拷贝sample/breakpad/src/main/java/cn/onlinecache/breakpad/NativeBreakpad.java到你的工程目录下,注意:包名不能改哦!!
  3. 在你的Application类初始化: NativeBreakpad.init(Environment.getExternalStorageDirectory().getAbsolutePath()); 注意:这个方法所传的参数你可以直接定义

** 你也可以无需编译,直接使用sample的breakpad module**

与工程配套的文章教程:https://www.jianshu.com/p/c1ff71c9b5ef

breakpad-for-android's People

Contributors

yinyinnie avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.