Coder Social home page Coder Social logo

lijizhi / autoex Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bolexliu/autoex

0.0 1.0 0.0 145 KB

:sun_with_face:帮助Android开发者,让项目在崩溃时从异常堆栈中,自动寻找Stack Overflow的回答。

License: Apache License 2.0

Java 100.00%

autoex's Introduction

AutoEx

帮助Android开发者,让项目在崩溃时从异常堆栈中,自动寻找Stack Overflow的回答。

AutoEx api+svg sizesvg stackoverflow

项目崩溃后,你的LogCat日志会出现来自Stack Overflow的回答。

像下面这样:

┌—————————————————————AutoEx——————————————————————
├ 错误类型:android.content.res.Resources$NotFoundException: Resource ID #0x7f0b0056 type #0x12 is not valid。↑详细异常请往上滚动查看↑
├ 推荐参考Stack Overflow上4条同类问题。↓点击下方连接查看↓
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
├ 标题:Android Resources$NotFoundException: Resource ID #0x7f030027
├ 链接:https://stackoverflow.com/questions/21269502/android-resourcesnotfoundexception-resource-id-0x7f030027
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
├ 标题:android.content.res.Resources$NotFoundException: Resource ID #0x7f07007e
├ 链接:https://stackoverflow.com/questions/48161713/android-content-res-resourcesnotfoundexception-resource-id-0x7f07007e
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
├ 标题:App crashes when adding an ImageView?
├ 链接:https://stackoverflow.com/questions/47600747/app-crashes-when-adding-an-imageview
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
├ 标题:XML Android app will not load on phone
├ 链接:https://stackoverflow.com/questions/48310838/xml-android-app-will-not-load-on-phone
└—————————————————————AutoEx——————————————————————

用法

  • 根build.gradle:
allprojects {
    repositories {maven { url 'https://jitpack.io' }}
}
  • dependency (低版本Gradle使用 debugCompile releaseCompile)
dependencies {
     debugImplementation 'com.github.BolexLiu.AutoEx:AutoEx-Lib:v1.0.8'
     releaseImplementation 'com.github.BolexLiu.AutoEx:AutoEx-Lib-No-Op:v1.0.8'
}
  • 初始化方式(任选一种,放在Application中)
 AutoEx.apply();//一行即可
 AutoEx.apply( mApp, maxSize, tag, isDebug)//Applicatin 答案数目 日志TAG 是否调试

android support:

  • minSdkVersion 14
  • maxSdkVersion 26+

更新描述

  • 1.0.5 修复小米等手机直接被Kill,添加多进程(感谢静心同学的测试)
  • 1.0.6 最大提示数目、增加日志过滤、调试模式选择
  • 1.0.7 增加无参构造、增加Rlease空包支持(感谢巴神)
  • 1.0.8 对无法反射获取Context的机型给出日志提示
  • 增加AutoEx-Gradle插件版,对编译时报错支持提示,不过这个没什么太大用处

后续需求

  • 基于搜索引擎扩展结果,避免精准匹配的异常有时候出不来的问题。要考虑墙的问题(google? bing?)

AutoEx只有9kb的大小。为了保持精简干净不给开发者添麻烦,AutoEx没有依赖第三方库。(比如OKHttp、Gson等)。 所以你不用担心依赖冲突等问题。另外请保持手机是联网状态的。希望能给你带来方便。

autoex's People

Contributors

bolexliu avatar

Watchers

James Cloos 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.