java - NoClassDefFounderror 安卓

标签 java android eclipse

我正在尝试运行我的 Android 项目,但出现以下错误:-

01-01 13:28:06.775: E/AndroidRuntime(1812): java.lang.NoClassDefFoundError: com.mapps.dailystatusupdater.StatusUpdater
01-01 13:28:06.775: E/AndroidRuntime(1812):     at com.mapps.dailystatusupdater.SplashScreen$RefreshTokenTask.onPostExecute(SplashScreen.java:253)
01-01 13:28:06.775: E/AndroidRuntime(1812):     at com.mapps.dailystatusupdater.SplashScreen$RefreshTokenTask.onPostExecute(SplashScreen.java:1)

SpashScreen.java

private class RefreshTokenTask extends AsyncTask<Void, Void, Void>
    {

        @Override
        protected Void doInBackground(Void... params) 
        {
            // TODO Auto-generated method stub
            //some code
        }

        @Override
        protected void onPostExecute(Void result) 
        {
            // TODO Auto-generated method stub
            super.onPostExecute(result);
            Intent i = new Intent(SplashScreen.this, StatusUpdater.class);
            startActivity(i);
            finish();

        }

        @Override
        protected void onPreExecute() {
            // TODO Auto-generated method stub
            super.onPreExecute();
        }


    }

AndroidManifest.java

<activity
            android:name="com.mapps.dailystatusupdater.StatusUpdater"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>

我将我的 ADT 从 22.X 更新到 23.0。我已经尝试清理项目、重新启动 eclipse、导出我的 Android 私有(private)库,但没有任何效果。

enter image description here

enter image description here

我该如何解决?

最佳答案

转到 android sdk 管理器,确保你安装了 android 构建工具。

关于java - NoClassDefFounderror 安卓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27729191/

相关文章:

java - 创建类路径资源中定义的名为 'sessionFactory' 的 bean 时出错...找不到类

java - 为什么子 POM 中不需要版本号?

android - 在 Android 中使用谷歌地图

c++ - 在整个项目中搜索 Eclipse CDT 中的包含项

java - 获取Java源文件的包

java - URI 没有分层,需要使用 File 类作为方法

android - 什么时候应该使用 "spring for android"?

Android MediaPlayer Streaming YouTube 音频流意外的大声静态

eclipse - eclipse 调试hadoop wordcount,并发生异常

java - 找不到 Web UI 的资源路径 : org/apache/spark/ui/static While creating a Spark application