Android Annotations能否在Android 2.3版上运行?

时间:2014-10-01 10:57:49

标签: android dalvik


当我在Android上编译我的应用程序大于2.3时它可以工作,但在2.3它给我这个异常错误

10-01 15:33:29.036: W/dalvikvm(4047): threadid=1: thread exiting with uncaught exception (group=0x401c75a0)
10-01 15:33:29.046: E/AndroidRuntime(4047): FATAL EXCEPTION: main
10-01 15:33:29.046: E/AndroidRuntime(4047): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.pantera.ehotel/com.pantera.ehotel.MainActivity_}: android.view.InflateException: Binary XML file line #14: Error inflating class fragment
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1872)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread.access$1500(ActivityThread.java:135)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.os.Looper.loop(Looper.java:150)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread.main(ActivityThread.java:4389)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at java.lang.reflect.Method.invokeNative(Native Method)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at java.lang.reflect.Method.invoke(Method.java:507)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at dalvik.system.NativeStart.main(Native Method)
10-01 15:33:29.046: E/AndroidRuntime(4047): Caused by: android.view.InflateException: Binary XML file line #14: Error inflating class fragment
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:581)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.rInflate(LayoutInflater.java:626)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:250)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.Activity.setContentView(Activity.java:1712)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.pantera.ehotel.MainActivity_.setContentView(MainActivity_.java:47)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.pantera.ehotel.MainActivity_.onCreate(MainActivity_.java:38)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1836)
10-01 15:33:29.046: E/AndroidRuntime(4047):     ... 11 more
10-01 15:33:29.046: E/AndroidRuntime(4047): Caused by: java.lang.ClassNotFoundException: android.view.fragment in loader dalvik.system.PathClassLoader[/data/app/com.pantera.ehotel-2.apk]
10-01 15:33:29.046: E/AndroidRuntime(4047):     at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.createView(LayoutInflater.java:471)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.onCreateView(LayoutInflater.java:549)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:66)
10-01 15:33:29.046: E/AndroidRuntime(4047):     at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
10-01 15:33:29.046: E/AndroidRuntime(4047):     ... 22 more

我到处寻找,但没有找到任何有用的东西......

提前感谢.... :-)

0 个答案:

没有答案