Android Dex: option "--core-library" to suppress this error message

I am trying to compile a simple Android project with SlidingMenu ( https://github.com/jfeinstein10/SlidingMenu ) in IntelliJ Idea 12, but I have this trouble: enter image description here

I have only 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); } } 
+4
source share
1 answer

Enabling (swith on) FLAG in the IDE compilation setup (Android compilers): Add the flag --core-library

will solve this problem

0
source

Source: https://habr.com/ru/post/1495081/


All Articles