使用 StandOut 库时出现 NoClassDefFoundError

NoClassDefFoundError when using the StandOut Library

我正在尝试使用 StandOut API 制作窗口应用程序。当我使用示例文件夹时,出现了一大堆关于它需要指向哪里以及诸如此类的问题。我解决了所有问题,但它附带了

java.lang.NoClassDefFoundError

库中没有 gradle 文件,因为许多其他 Stack Overflow 答案都有使用 gradle 解决它的方法。除了输出 "questions" 之类的内容外,我没有对库进行任何编辑。您可以使用 this link 下载该库以在您的计算机上进行测试。我在 Windows 10.

上使用 Android Studio 1.2

请将 android studio 更新到新版本。确定你的 class 有你的项目的映射。尝试将此代码添加到您的应用程序 class:

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

希望对你有帮助。祝你好运