Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResourceNotFound Exception #292

Open
Szanik opened this issue Apr 13, 2024 · 2 comments
Open

ResourceNotFound Exception #292

Szanik opened this issue Apr 13, 2024 · 2 comments

Comments

@Szanik
Copy link

Szanik commented Apr 13, 2024

Trying to call a simple Alert via

Alerter.create(activity) .setTitle("Hey").show()

Gives me the following exception:

FATAL EXCEPTION: main Process: de.szanik.walkingtreats, PID: 17546 android.content.res.Resources$NotFoundException: Resource ID #0x0 at android.content.res.ResourcesImpl.getValueForDensity(ResourcesImpl.java:259) at android.content.res.Resources.getDrawableForDensity(Resources.java:1049) at android.content.res.Resources.getDrawable(Resources.java:989) at android.content.Context.getDrawable(Context.java:952) at androidx.core.content.ContextCompat$Api21Impl.getDrawable(ContextCompat.java:1110) at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:526) at com.tapadoo.alerter.utils.ExAlertKt.getRippleDrawable(ExAlert.kt:24) at com.tapadoo.alerter.Alert.onAttachedToWindow(Alert.kt:176) at android.view.View.dispatchAttachedToWindow(View.java:23198) at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3694) at android.view.ViewGroup.addViewInner(ViewGroup.java:5548) at android.view.ViewGroup.addView(ViewGroup.java:5324) at android.view.ViewGroup.addView(ViewGroup.java:5264) at android.view.ViewGroup.addView(ViewGroup.java:5236) at com.tapadoo.alerter.Alerter$show$$inlined$let$lambda$1.run(Alerter.kt:47) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8893) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:608) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Android 14
One UI 6.0
LibVersion 7.2.4
using it in an app written in jet compose

@superdiazzz
Copy link

got the same problem, do you get solution?

@Szanik
Copy link
Author

Szanik commented Jul 30, 2024

i used this:

https://github.com/akardas16/Alerter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants