Buggy code:
public class ShowcaseViews { private final List < ShowcaseView > views = new ArrayList < ShowcaseView > ( ) ; private final Activity activity ; private ShowcaseViews . OnShowcaseAcknowledged showcaseAcknowledgedListener = new ShowcaseViews . OnShowcaseAcknowledged ( ) { @ Override public void onShowCaseAcknowledged ( ShowcaseView showcaseView ) { } } ; public interface OnShowcaseAcknowledged { void onShowCaseAcknowledged ( ShowcaseView showcaseView ) { } } public ShowcaseViews ( Activity activity ) { } public ShowcaseViews ( Activity activity , ShowcaseViews . OnShowcaseAcknowledged acknowledgedListener ) { } public ShowcaseViews addView ( ShowcaseViews . ItemViewProperties properties ) { <START_BUG> ShowcaseView . Builder builder = new ShowcaseView . Builder ( activity ) ; <END_BUG> builder . setContentTitle ( properties . titleResId ) ; builder . setContentText ( properties . messageResId ) ; builder . setTarget ( properties . target ) ; if ( ( properties . singleShotId ) != ( - 1 ) ) builder . singleShot ( properties . singleShotId ) ; if ( ( properties . buttonTextResId ) != ( - 1 ) ) builder . setButtonText ( properties . buttonTextResId ) ; if ( properties . hideOnTouchOutside ) builder . hideOnTouchOutside ( ) ; if ( properties . doNotBlockTouches ) builder . doNotBlockTouches ( ) ; if ( ( properties . theme ) != ( - 1 ) ) builder . setStyle ( properties . theme ) ; ShowcaseView showcaseView = builder . build ( ) ; showcaseView . overrideButtonClick ( createShowcaseViewDismissListener ( showcaseView ) ) ; views . add ( showcaseView ) ; return this ; } private OnClickListener createShowcaseViewDismissListener ( final ShowcaseView showcaseView ) { } private void showNextView ( ShowcaseView showcaseView ) { } public void show ( ) { } public boolean hasViews ( ) { } public static class ItemViewProperties { protected final int titleResId ; protected final int messageResId ; protected final int buttonTextResId ; protected final int theme ; protected final Target target ; protected final long singleShotId ; protected final boolean doNotBlockTouches ; protected final boolean hideOnTouchOutside ; public ItemViewProperties ( Target target , int titleResId , int messageResId ) { } public ItemViewProperties ( Target target , int titleResId , int messageResId , int buttonTextResId ) { } public ItemViewProperties ( Target target , int titleResId , int messageResId , long singleShotId ) { } public ItemViewProperties ( Target target , int titleResId , int messageResId , boolean hideOnTouchOutside , boolean doNotBlockTouches ) { } public ItemViewProperties ( Target target , int titleResId , int messageResId , int buttonTextResId , boolean hideOnTouchOutside , boolean doNotBlockTouches ) { } public ItemViewProperties ( Target target , int titleResId , int messageResId , int buttonTextResId , long singleShotId , boolean doNotBlockTouches , boolean hideOnTouchOutside ) { } public ItemViewProperties ( int theme , Target target , int titleResId , int messageResId , int buttonTextResId , long singleShotId , boolean doNotBlockTouches , boolean hideOnTouchOutside ) { } } }

Fix:
ShowcaseView . Builder builder = new ShowcaseView . Builder ( activity , true ) ;