Android PureMVC

阅读更多
1.自己写的示例程序报错
03-23 14:32:30.591: W/dalvikvm(822): Unable to resolve superclass of Lcom/example/android/ApplicationFacade; (54)
03-23 14:32:30.591: W/dalvikvm(822): Link of class 'Lcom/example/android/ApplicationFacade;' failed
03-23 14:32:30.602: I/dalvikvm(822): Could not find method com.example.android.ApplicationFacade.getInstance, referenced from method com.example.android.view.MainActivity.
03-23 14:32:30.602: W/dalvikvm(822): VFY: unable to resolve static method 22: Lcom/example/android/ApplicationFacade;.getInstance ()Lcom/example/android/ApplicationFacade;
03-23 14:32:30.612: D/dalvikvm(822): VFY: replacing opcode 0x71 at 0x0011
03-23 14:32:30.612: D/dalvikvm(822): VFY: dead code 0x0014-0018 in Lcom/example/android/view/MainActivity;. ()V
03-23 14:32:36.542: D/AndroidRuntime(822): Shutting down VM
03-23 14:32:36.542: W/dalvikvm(822): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
03-23 14:32:36.722: E/AndroidRuntime(822): FATAL EXCEPTION: main
03-23 14:32:36.722: E/AndroidRuntime(822): java.lang.NoClassDefFoundError: com.example.android.ApplicationFacade
03-23 14:32:36.722: E/AndroidRuntime(822): 	at com.example.android.view.MainActivity.(MainActivity.java:50)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at java.lang.Class.newInstanceImpl(Native Method)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at java.lang.Class.newInstance(Class.java:1429)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.ActivityThread.access$2300(ActivityThread.java:125)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.os.Handler.dispatchMessage(Handler.java:99)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.os.Looper.loop(Looper.java:123)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at android.app.ActivityThread.main(ActivityThread.java:4627)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at java.lang.reflect.Method.invokeNative(Native Method)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at java.lang.reflect.Method.invoke(Method.java:521)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
03-23 14:32:36.722: E/AndroidRuntime(822): 	at dalvik.system.NativeStart.main(Native Method)

解决方法:
Java Build Path->Order and Export->选中puremvc-java-1.1.jar->clean工程


2.参考示例
https://github.com/tekool/puremvc-android-currency-converter

你可能感兴趣的:(android,puremvc)