Search code examples
javaandroidnoclassdeffounderror

NoClassDefFoundError when using the StandOut Library


I am trying to use the StandOut API to make a windowed app. When I used the example folder, there came a whole bunch of issues about where it needs to point to and stuff like that. I solved all of it, but it came with a

java.lang.NoClassDefFoundError

There is no gradle file in the library as many of the other Stack Overflow answers had ways to solve it using gradle. I have made no edits to the library except for stuff like output "questions". You can download the library using this link to test it on your computer. I am using Android Studio 1.2 on Windows 10.


Solution

  • Please update android studio to new version. Sure that Your class have mapping on your project. Try add this code to your application class:

        protected void attachBaseContext(Context base){
            super.attachBaseContext(base);
            MultiDex.install(this);
        }
    

    Hope It help you. good luck