Skip to content

Resources$NotFoundException crash with 1.9.0 #156

@julioz

Description

@julioz
  • I have verified the issue exists on the latest version
  • I am able to reproduce it

Not sure why this is happening, but upgrading from 1.7.0 to 1.9.0 was all I did and everytime a TapTargetView should appear, the crash occurs.
Some people mention setting a fixed ID for dynamically generated views but honestly I don't understand why that could fix this. Unfortunately, I didn't have time to test it myself.

Version used:
1.9.0

Stack trace:

android.content.res.Resources$NotFoundException: Resource ID #0xffffffff
    at android.content.res.Resources.getValue(Resources.java:1351)
    at android.content.res.Resources.getDimension(Resources.java:620)
    at com.getkeepsafe.taptargetview.TapTarget.dimenOrSize(TapTarget.java:472)
    at com.getkeepsafe.taptargetview.TapTarget.titleTextSizePx(TapTarget.java:454)
    at com.getkeepsafe.taptargetview.TapTargetView.<init>(TapTargetView.java:400)
    at com.getkeepsafe.taptargetview.TapTargetView.showFor(TapTargetView.java:165)

Android version:
Android M

This is the code that I use for showing the TapTargetView:

TapTarget.forView(targetView, title, description)
    .outerCircleColor(R.color.white)
    .targetCircleColor(R.color.orange)
    .textColor(R.color.black)
    .transparentTarget(false)
    .titleTextDimen(R.dimen.medium_primary_text_size)
    .descriptionTextDimen(R.dimen.medium_secondary_text_size)
    .textTypeface(getFont(context, MY_CUSTOM_FONT_TYPEFACE));

but since the only change I did was the dependency version, I believe the issue must be inside the library unfortunately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions