不幸的是,Android Beacon Library停了下来

时间:2016-05-18 08:02:20

标签: android

我正在制作一些应该使用Beacon的应用程序。

所以我下载了Android Beacon Library并实现了BeaconConsumer。

我的项目确实已经建成,但已经停止了。

这是我的代码。

我不知道该怎么办。 错误没有显示。

enter image description here

enter image description here

05-19 00:22:46.966 2195-2195/team2.beepbeep I/art: Not late-enabling -      Xcheck:jni (already on)   
05-19 00:22:46.966 2195-2195/team2.beepbeep I/art: Late-enabling JIT   
05-19 00:22:46.969 2195-2195/team2.beepbeep I/art: JIT created with    code_cache_capacity=2MB compile_threshold=1000      
05-19 00:22:47.094 2195-2195/team2.beepbeep W/System: ClassLoader referenced unknown path: /data/app/team2.beepbeep-1/lib/x86
05-19 00:22:48.861 2195-2195/team2.beepbeep W/System: ClassLoader referenced unknown path: /data/app/team2.beepbeep-1/lib/x86
05-19 00:22:48.931 2195-2195/team2.beepbeep D/AndroidRuntime: Shutting down VM
05-19 00:22:48.931 2195-2195/team2.beepbeep E/AndroidRuntime: FATAL EXCEPTION: main
                                                          Process:     team2.beepbeep, PID: 2195
                                                          java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{team2.beepbeep/team2.beepbeep.MainActivity}: java.lang.InstantiationException: java.lang.Class<team2.beepbeep.MainActivity> cannot be instantiated
                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2327)
                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
                                                              at android.app.ActivityThread.-wrap11(ActivityThread.java)
                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
                                                              at android.os.Handler.dispatchMessage(Handler.java:102)
                                                              at android.os.Looper.loop(Looper.java:148)
                                                              at android.app.ActivityThread.main(ActivityThread.java:5417)
                                                              at java.lang.reflect.Method.invoke(Native Method)
                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
                                                           Caused by: java.lang.InstantiationException: java.lang.Class<team2.beepbeep.MainActivity> cannot be instantiated
                                                              at java.lang.Class.newInstance(Native Method)
                                                              at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
                                                              at android.app.ActivityThread.-wrap11(ActivityThread.java) 
                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
                                                              at android.os.Handler.dispatchMessage(Handler.java:102) 
                                                              at android.os.Looper.loop(Looper.java:148) 
                                                              at android.app.ActivityThread.main(ActivityThread.java:5417) 
                                                              at java.lang.reflect.Method.invoke(Native Method) 
                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)     
05-19 00:24:02.736 2195-2202/team2.beepbeep W/art: Suspending all threads took: 52.698ms

0 个答案:

没有答案