我最近将我的ADT从22更新到版本23.0。现在我的项目曾经在更新之前运行正常,这给了我以下错误: -
01-01 10:19:27.016: E/AndroidRuntime(2405): java.lang.NoClassDefFoundError: com.mapps.dailystatusupdater.StatusUpdate
01-01 10:19:27.016: E/AndroidRuntime(2405): at com.mapps.dailystatusupdater.SplashScreen$RefreshTokenTask.onPostExecute(SplashScreen.java:253)
SplashScreen.java
private class RefreshTokenTask extends AsyncTask<Void, Void, Void>
{
@Override
protected Void doInBackground(Void... params)
{
// TODO Auto-generated method stub
/**
* Check if access token is expired
* Request new access token by passing refresh token
*/
// DoInBackground code
}
@Override
protected void onPostExecute(Void result)
{
// TODO Auto-generated method stub
super.onPostExecute(result);
Intent i = new Intent(SplashScreen.this, StatusUpdate.class);
startActivity(i);
finish();
}
@Override
protected void onPreExecute() {
// TODO Auto-generated method stub
super.onPreExecute();
}
AndroidManifest.java
<activity
android:name="com.mapps.dailystatusupdater.StatusUpdate"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
我还检查了我的Android库,以便从导入/导出设置中导出。 我可以解决这个问题吗?谢谢
答案 0 :(得分:0)
尝试这样:
Project -> Libs -> Right click on Jar file -> Build Path -> Add to Build Path
和
Project -> Right Click -> Properties -> Java Build Path -> Order and Export -> and Check that library -> OK -> Clean the Project.
答案 1 :(得分:0)
转到项目 - &gt;属性 - &gt; Java构建路径 - &gt;订单&amp;导出并确保为您的项目检查Android私有库。清理所有项目
还有一件事 - goto android sdk manager确保你安装了android构建工具。