0
當我編譯我的應用程序的Android 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
}
你能告訴我你在使用哪個庫嗎?我認爲這個庫沒有ConfigOptions – Luc
@JackDuong https://github.com/amlcurran/ShowcaseView我使用Showcaseview庫.. – user1825546