我是新的android工作室程序员,当我在模拟器中尝试应用程序时它的工作没有任何问题,但在我的手机或其他手机中没有,显示不幸的是enable_extension 'uuid-ossp'
已停止然后退出??
我读了很多答案,所以我会为你提供logcat报告
MyApp
如果我的项目在一个活动中有很多代码,那么就会产生影响
在我的项目中这样
03-02 16:34:06.788 1610-1623/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.mrwan.pharma/.MainActivity bnds=[32,319][307,755] (has extras)} from uid 10014 on display 0
03-02 16:34:06.861 1610-2651/? I/ActivityManager: Start proc 3848:com.example.mrwan.pharma/u0a71 for activity com.example.mrwan.pharma/.MainActivity
03-02 16:34:07.535 1610-1635/? I/Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.
03-02 16:34:07.625 3848-3848/? I/InstantRun: starting instant run server: is main process
03-02 16:34:09.655 1610-1635/? I/ActivityManager: Displayed com.example.mrwan.pharma/.MainActivity: +2s824ms
03-02 16:34:09.655 3848-3848/? I/Choreographer: Skipped 32 frames! The application may be doing too much work on its main thread.
03-02 16:34:11.190 1610-1733/? I/ActivityManager: START u0 {cmp=com.example.mrwan.pharma/.Main2Activity} from uid 10071 on display 0
03-02 16:34:12.371 3848-3848/? I/Choreographer: Skipped 66 frames! The application may be doing too much work on its main thread.
03-02 16:34:13.363 3848-3848/? I/Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread.
03-02 16:34:13.624 1610-1635/? I/ActivityManager: Displayed com.example.mrwan.pharma/.Main2Activity: +2s383ms
03-02 16:34:14.014 3848-3848/? I/Choreographer: Skipped 38 frames! The application may be doing too much work on its main thread.
03-02 16:34:16.560 1610-1624/? I/ActivityManager: START u0 {cmp=com.example.mrwan.pharma/.Main3Activity} from uid 10071 on display 0
03-02 16:34:17.190 3848-3848/? W/art: Verification of java.lang.Object com.example.mrwan.pharma.Main3Activity.access$super(com.example.mrwan.pharma.Main3Activity, java.lang.String, java.lang.Object[]) took 151.542ms
03-02 16:34:18.546 3848-3848/? I/Choreographer: Skipped 106 frames! The application may be doing too much work on its main thread.
03-02 16:34:19.566 1610-1635/? I/ActivityManager: Displayed com.example.mrwan.pharma/.Main3Activity: +2s965ms
答案 0 :(得分:0)
确保您的手机处于开发者模式。