Android Dex : the “–core-library” option to suppress this error message… here is a solution to the problem.
Android Dex : the “–core-library” option to suppress this error message
I’m trying to use SlidingMenu ( in IntelliJ Idea 12 https://github.com/jfeinstein10/SlidingMenu) Compile a simple Android project, but I’m running into this issue:
I only have this activity :
public class MainActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle("Test");
set the content view
setContentView(R.layout.main);
configure the SlidingMenu
SlidingMenu menu = new SlidingMenu(this);
menu.setMode(SlidingMenu.LEFT);
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);
menu.setFadeDegree(0.35f);
menu.attachToActivity(this, SlidingMenu.SLIDING_CONTENT);
menu.setMenu(R.layout.menu);
}
}
Solution
Include (turn on) FLAG in the IDE compilation settings (Android compiler):
Add the “–core-library” flag
Will solve this problem