这是我在这里的第一个问题,希望它不会被忽视。
申请已于 3 个月前发布。通常应用程序在多个 android 设备上进行了测试并且运行良好,但一些客户遇到了崩溃。
堆栈跟踪:
java.lang.NoClassDefFoundError: com.lostnfound.mobile_app.Past_mapactivityinstance
at com.lostnfound.mobile_app.Past_map_fragm.onCreateView(Past_map_fragm.java:52)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:845)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1058)
at android.support.v4.app.FragmentManagerImpl.addFragment(FragmentManager.java:1156)
at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:270)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:669)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
at android.app.Activity.setContentView(Activity.java:1862)
at com.lostnfound.mobile_app.Past_act.onCreate(Past_act.java:44)
at android.app.Activity.performCreate(Activity.java:4492)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
at android.app.ActivityThread.access$600(ActivityThread.java:123)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4424)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
at dalvik.system.NativeStart.main(Native Method)
Past_map_fragm 代码:
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
...
final TabSpec tabSpec = tabHost.newTabSpec("map").setIndicator("Map")
.setContent(new Intent(getActivity(), Past_mapactivityinstance.class));
...
}
我知道 NoClassDefFoundError 确实是一般错误。我无法弄清楚为什么该应用程序在大多数 android 设备上都能正常工作,但有些会遇到这个错误。
显现:
<uses-sdk android:minSdkVersion="7"
android:targetSdkVersion="8" />