Comments (18)
Do I need to manually log every crash log first?
from crashy.
dependencies {
// androidX startup for auto-init
implementation "androidx.startup:startup-runtime:1.0.0-alpha01"
//crashy
implementation 'com.github.CraZyLegenD:Crashy:1.0.5'
}
And inside your manifest
<provider
android:name="androidx.startup.InitializationProvider"
android:authorities="${applicationId}.androidx-startup"
android:exported="false"
tools:node="merge">
<meta-data
android:name="com.crazylegend.crashyreporter.initializer.CrashyInitializer"
android:value="androidx.startup" />
</provider>
Do you have that?
from crashy.
Yes I have that.
from crashy.
Then I can't help you if you don't post code sample or project.
Once the crash happened it'll log it, if it was an exception thrown you have to manually log it.
Please kindly post a project sample so that I can look into the issue you're having.
from crashy.
This is the project: https://github.com/Docile-Alligator/Infinity-For-Reddit
build.gradle: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L97
Fragment for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsFragment.java
Adapter for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsRecyclerViewAdapter.java
Thank you!
from crashy.
This is the project: https://github.com/Docile-Alligator/Infinity-For-Reddit
build.gradle: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L97
Fragment for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsFragment.java
Adapter for showing crash reports: https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/master/app/src/main/java/ml/docilealligator/infinityforreddit/Settings/CrashReportsRecyclerViewAdapter.java
Thank you!
Is there a section where it crashes and the crash isn't caught or i should force a crash to test it?
from crashy.
You need to force a crash :)
from crashy.
There is a crash in minifiedRelesase though. If you like I can send a signed apk to you.
from crashy.
Here it is: https://drive.google.com/file/d/1-gdPp-IzDA4HRQRG2TpIybWMcO5X251_/view?usp=sharing
Go to Settings->Interface->Font->Font Preview and the app will crash
from crashy.
I see that the project is written in Java and the library is in Kotlin, I'm not sure how inlining works in Java since the library relies on inlined functions.
Can you try adding
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
kotlinOptions {
jvmTarget = "1.8"
}
I think you can ommit the Kotlin options
from crashy.
Thank you. I have added compileOptions already in https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L31
But adding kotlinkOptions will give me an error when syncing the project.
from crashy.
Thank you. I have added compileOptions already in https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/685a39ba58fab82cc0486e49394a0f398bba8254/app/build.gradle#L31
But adding kotlinkOptions will give me an error when syncing the project.
The kotlin options are for kotlin project that's why i said you can omit them.
So... Does it work now?
from crashy.
No, it doesn't. It's weird.
from crashy.
I didn't notice that the project was Java, my bad, the library won't work with Java, probably I should've mentioned that somewhere.
Sorry for your inconvenience, maybe convert to Kotlin, I've seen the code and it'll benefit a lot from Kotlin?
from crashy.
No problem! I will learn Kotlin first. :)
from crashy.
No problem! I will learn Kotlin first. :)
Can you check if 1.0.6 works for you?
I think it was mistake on my end...
Sorry.
from crashy.
No problem! I will learn Kotlin first. :)
If you decide to check out the new version let me know, I'll be closing the issue due to inactivity.
from crashy.
Oh! Sorry for the very late reply! Didn't check my inbox. It works perfectly fine now! Thank you for this amazing library!
from crashy.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crashy.