我试图找到问题但无济于事,我按照说明添加了库
(LibraryProject 为Library,myProject 中为addLibrary)
当我开始我的项目时出现错误:
日志:
FATAL EXCEPTION: main
java.lang.NoClassDefFoundError: com.slidingmenu.lib.SlidingMenu
at ru.com.whatyouwant.MainActivity.onCreate(MainActivity.java:35)
和Activity.class
@Override
protected void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//SlidingMenu Line 35
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setShadowWidth(10);
menu.setSlidingEnabled(true);
menu.setFadeDegree(0.35f);
menu.setMenu(R.layout.menu);
// Initialize ID's
mText = (EditText)findViewById(R.id.fullscreen_content);
pop_up_menu = (LinearLayout) findViewById(R.id.pop_up_menu);
mFiles = new FileOptions(this);
//Menu ID's
menu_save = (TextView) findViewById(R.id.pop_up_save);
menu_save.setOnClickListener(onMenu_save);
menu_delete = (TextView) findViewById(R.id.pop_up_delete);
menu_delete.setOnClickListener(onMenu_delete);
// Call Popup Menu
mText.setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
new PopupMenu(pop_up_menu, MainActivity.this);
return false;
}
});
}