我已经浏览了有关他的错误的所有相关线程,但我没有成功。
应用程序运行良好,我昨天在 SDK 上发现了一些更新。
我通过 Android SDK Tools 更新到 22(Rev.) 并将其他更新也更新到了最新的 .
当我运行我的应用程序时,它与日志一起崩溃
05-17 05:27:37.039: E/AndroidRuntime(1406): FATAL EXCEPTION: main
05-17 05:27:37.039: E/AndroidRuntime(1406): java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.facebook.internal.SessionTracker.<init>(SessionTracker.java:76)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.facebook.widget.LoginButton.finishInit(LoginButton.java:475)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.facebook.widget.LoginButton.onFinishInflate(LoginButton.java:468)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:631)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:209)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.Activity.setContentView(Activity.java:1657)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.myproject.tabs.Tab_More.onCreate(Tab_More.java:92)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.ActivityThread.startActivityNow(ActivityThread.java:1491)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.LocalActivityManager.moveToState(LocalActivityManager.java:127)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.LocalActivityManager.startActivity(LocalActivityManager.java:339)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.widget.TabHost$IntentContentStrategy.getContentView(TabHost.java:676)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.widget.TabHost.setCurrentTab(TabHost.java:348)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.widget.TabHost$2.onTabSelectionChanged(TabHost.java:141)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.widget.TabWidget$TabClickListener.onClick(TabWidget.java:456)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.View.performClick(View.java:2485)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.view.View$PerformClick.run(View.java:9080)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.os.Handler.handleCallback(Handler.java:587)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.os.Handler.dispatchMessage(Handler.java:92)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.os.Looper.loop(Looper.java:130)
05-17 05:27:37.039: E/AndroidRuntime(1406): at android.app.ActivityThread.main(ActivityThread.java:3687)
05-17 05:27:37.039: E/AndroidRuntime(1406): at java.lang.reflect.Method.invokeNative(Native Method)
05-17 05:27:37.039: E/AndroidRuntime(1406): at java.lang.reflect.Method.invoke(Method.java:507)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867)
05-17 05:27:37.039: E/AndroidRuntime(1406): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:625)
05-17 05:27:37.039: E/AndroidRuntime(1406): at dalvik.system.NativeStart.main(Native Method)
我已将所有.Jar
文件放在libs
文件夹 中
我在 Project > Properties > 中删除了 jars Java Build Path
。
但我仍然得到这个崩溃。我setContentView
也在onCreate
方法中崩溃。为什么我在一个特定的活动中发生这种崩溃,而其他活动正在运行。此外,我已经阻止了该活动中的所有代码(代码如下)
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.myactivity);
}
欢迎任何相关答案,并提前致谢。