2014-01-26 3 views
0

내가 내가이 오류가안드로이드 Showcaseview 라이브러리 java.lang.NoClassDefFoundError가

이 ..

내가 그것을 어떻게

를 해결할 수 내 응용 프로그램 컴파일 할 때?

01-26 23 : 27 : 33.392 : E/AndroidRuntime (18895) : java.lang.NoClassDefFoundError가 : com.espian.showcaseview.ShowcaseView $ ConfigOptions

내 코드

ShowcaseView sv; 

@Override 
protected void onCreate(Bundle savedInstanceState) { 
    super.onCreate(savedInstanceState); 
    setContentView(R.layout.activity_main); 
    ShowcaseView.ConfigOptions co = new ShowcaseView.ConfigOptions(); 
    co.hideOnClickOutside = true; 
    ViewTarget target = new ViewTarget(R.id.test, this); 
    sv = ShowcaseView.insertShowcaseView(target, this, R.string.showcase_main_title, R.string.showcase_main_message, co); 
    sv.setOnShowcaseEventListener(this); 
} 

@Override 
public void onShowcaseViewHide(ShowcaseView showcaseView) { 
    // TODO Auto-generated method stub 

} 

@Override 
public void onShowcaseViewDidHide(ShowcaseView showcaseView) { 
    // TODO Auto-generated method stub 

} 

@Override 
public void onShowcaseViewShow(ShowcaseView showcaseView) { 
    // TODO Auto-generated method stub 

} 
+0

어떤 라이브러리를 사용하고 있는지 말해 줄 수 있습니까? 이 라이브러리에는 ConfigOptions이 없다고 생각합니다. – Luc

+0

@JackDuong https://github.com/amlcurran/ShowcaseView Showcaseview 라이브러리를 사용하고 있습니다. – user1825546

답변

1

당신의 ShowCaseView 클래스는 정적 클래스를 ConfigOptions

public static class ConfigOptions { 

    public boolean block = true, noButton = false; 
    public boolean hideOnClickOutside = false; 

    /** 
    * Does not work with the {@link ShowcaseViews} class as it does not make sense (only with 
    * {@link ShowcaseView}). 
    * @deprecated not compatible with Target API 
    */ 
    @Deprecated 
    public int insert = INSERT_TO_DECOR; 

    /** 
    * If you want to use more than one Showcase with the {@link ConfigOptions#shotType} {@link 
    * ShowcaseView#TYPE_ONE_SHOT} in one Activity, set a unique value for every different 
    * Showcase you want to use. 
    */ 
    public int showcaseId = 0; 

    /** 
    * If you want to use more than one Showcase with {@link ShowcaseView#TYPE_ONE_SHOT} in one 
    * Activity, set a unique {@link ConfigOptions#showcaseId} value for every different 
    * Showcase you want to use. If you want to use this in the {@link ShowcaseViews} class, you 
    * need to set a custom showcaseId for each {@link ShowcaseView}. 
    */ 
    public int shotType = TYPE_NO_LIMIT; 

    /** 
    * Default duration for fade in animation. Set to 0 to disable. 
    */ 
    public int fadeInDuration = AnimationUtils.DEFAULT_DURATION; 

    /** 
    * Default duration for fade out animation. Set to 0 to disable. 
    */ 
    public int fadeOutDuration = AnimationUtils.DEFAULT_DURATION; 
    /** 
    * Allow custom positioning of the button within the showcase view. 
    */ 
    public LayoutParams buttonLayoutParams = null; 

    /** 
    * Whether the text should be centered or stretched in the available space 
    */ 
    public boolean centerText = false; 
} 
이 있는지 확인하십시오 0
관련 문제