TourGuide icon indicating copy to clipboard operation
TourGuide copied to clipboard

Crash on setting tooltip

Open Hemant0601 opened this issue 9 years ago • 5 comments

Crashes as soon as I start my app and the method play is called, but happens only if I am setting tooltip. This is what I get always No static field toolTip_container of type I in class Ltourguide/tourguide/R$id; or its superclasses (declaration of 'tourguide.tourguide.R$id' appears in /data/app

Hemant0601 avatar Sep 24 '15 13:09 Hemant0601

I'm not sure why you're encountering this.

Can you run the example of the project? Then you can compare what is different from your app vs. the example of TourGuide.

Besides, can you post your relevant code? Maybe I can spot something strange..

worker8 avatar Sep 27 '15 08:09 worker8

I drilled into it and found while adding it via gradle, the asset toolTip_container is missing, thats why it was happening.

Hemant0601 avatar Sep 27 '15 08:09 Hemant0601

Did you manage to resolve the issue?

You don't actually need to include toolTip_container, because this library is an aar type, so the resources (like layout) should already be included.

worker8 avatar Sep 27 '15 11:09 worker8

@worker8 I'm using 1.0.16-SNAPSHOT and also get the same problem....I simply followed the guide to setup.

i'm using TourGuide inside Fragment....my setup code is simply:

 mTourGuideHandler = TourGuide.init(getActivity()).with(TourGuide.Technique.Click)
                    .setPointer(null)
                    .setToolTip(new ToolTip().setTitle(title).setDescription(text))
                    .setOverlay(new Overlay())
                    .playOn(targetView);

ngheungyu avatar Oct 02 '15 13:10 ngheungyu

I had the same problem. I had layout file called "tooltip.xml" in my app. So library was loading my layout and trying to find view with id toolTip_container, but there was none, since it wasn't layout from library. I changed file name of layout in my app, and now everything works.

f6v avatar Oct 28 '15 15:10 f6v