程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> debug-android 調試出錯,求職指點

debug-android 調試出錯,求職指點

編輯:編程綜合問答
android 調試出錯,求職指點

我的項目在WINDOWS下是跑正常的,但是在下面運行出現錯誤,錯誤提示

 ACTIVITY MANAGER RUNNING PROCESSES (dumpsys activity processes)
  Process LRU list (sorted by oom_adj, 64 total, non-act at 10, non-svc at 10):
    PERS #63: pers  F/ /P  trm: 0 903:system/1000 (fixed)
    PERS #62: pers  F/ /P  trm: 0 1136:com.android.keyguard/1000 (fixed)
    PERS #61: pers  F/ /P  trm: 0 1162:com.android.systemui/u0a75 (fixed)
    PERS #59: pers  F/ /P  trm: 0 1350:com.android.phone/1001 (fixed)
    PERS #58: pers  F/ /P  trm: 0 1361:com.huawei.hwpplogservice/1000 (fixed)
    PERS #57: pers  F/ /P  trm: 0 1380:com.huawei.powergenie/1000 (fixed)
    PERS #56: pers  F/ /P  trm: 0 1389:com.futurewei.ecens.mocalite/u0a45 (fixed)
    PERS #55: pers  F/ /P  trm: 0 1404:com.android.nfc/1027 (fixed)
    Proc #14: fore  F/ /IF trm: 0 1149:com.huawei.systemmanager:service/1000 (provider)
        com.huawei.systemmanager/com.huawei.notificationmanager.db.DBProvider<=Proc{903:system/1000}
    Proc # 1: fore  B/ /S  trm: 0 1732:ixz.fish_help_app/u0a157 (broadcast)
    Proc # 0: fore  F/A/T  trm: 0 12159:com.android.settings/1000 (top-activity)
    Proc #54: vis   F/ /IF trm: 0 1487:com.android.nfc:handover/1027 (service)
        com.android.nfc/.handover.HandoverService<=Proc{1404:com.android.nfc/1027}
    Proc #53: vis   F/ /IF trm: 0 1532:com.nxp.cascaen.paymentuicc/u0a71 (service)
        com.nxp.cascaen.paymentuicc/.PaymentServiceUICC<=Proc{1404:com.android.nfc/1027}
    Proc #52: vis   B/ /IB trm: 0 1316:com.baidu.map.location/u0a67 (service)
        com.baidu.map.location/.BaiduNetworkLocationService<=Proc{903:system/1000}
    Proc #51: vis   F/ /IF trm: 0 1999:com.android.smspush/u0a81 (service)
        com.android.smspush/.WapPushManager<=Proc{1350:com.android.phone/1001}
    Proc #50: vis   F/ /IF trm: 0 2283:org.simalliance.openmobileapi.service:remote/1050 (service)
        org.simalliance.openmobileapi.service/.SmartcardService<=Proc{903:system/1000}
    Proc #28: vis   F/ /IF trm: 0 1801:com.huawei.lcagent/1000 (service)
        com.huawei.lcagent/.service.LogCollectService<=Proc{1350:com.android.phone/1001}
    Proc #60: prcp  F/ /IF trm: 0 1301:com.baidu.input_huawei/u0a23 (service)
        com.baidu.input_huawei/.ImeService<=Proc{903:system/1000}
    Proc #49: prcp  F/ /S  trm: 0 5534:com.huawei.android.pushagent.PushService/1000 (cch-started-services)
    Proc #21: prcp  F/ /IF trm: 0 21057:android.process.acore/u0a0 (provider)
        com.android.providers.contacts/.ContactsProvider2<=Proc{2791:com.qihoo360.mobilesafe:GuardService/u0a132}
    Proc #20: prcp  F/S/IF trm: 0 2791:com.qihoo360.mobilesafe:GuardService/u0a132 (fg-service)
    Proc # 5: bkup  B/ /CA trm: 0 25163:com.android.contacts/u0a0 (cch-act)
    Proc # 2: bkup  B/ /HO trm: 0 1421:com.huawei.android.launcher/u0a44 (home)
    Proc #26: svc   B/ /S  trm: 0 6440:com.taobao.taobao:channel/u0a124 (started-services)
    Proc #16: svc   B/ /S  trm: 0 2727:cn.ninegame.gamemanager.yz:core/u0a122 (started-services)
    Proc #10: svc   B/ /S  trm: 0 4034:android.process.media/u0a4 (started-services)
    Proc # 9: svc   B/ /S  trm: 0 5482:com.tencent.mm:push/u0a127 (started-services)
    Proc # 8: svc   B/ /S  trm: 0 6471:com.taobao.taobao/u0a124 (service)
        com.taobao.taobao/com.taobao.wswitch.service.ConfigCenterService<=Proc{6440:com.taobao.taobao:channel/u0a124}
    Proc # 6: svc   B/ /S  trm: 0 5810:com.cootek.smartdialer_oem_module/u0a78 (started-services)
    Proc #48: svcb  B/ /S  trm: 0 7158:com.netease.pomelo.news.push.messageservice_V1/u0a121 (started-services)
    Proc #42: svcb  B/ /S  trm: 0 29192:com.sina.weibo:remote/u0a114 (started-services)
    Proc #39: svcb  B/ /S  trm: 0 9470:com.baidu.BaiduMap:bdservice_v1/u0a126 (started-services)
    Proc #35: svcb  B/ /S  trm: 0 7381:com.autonavi.minimap:pushservice/u0a154 (started-services)
    Proc #30: svcb  B/ /S  trm: 0 2201:com.qihoo.appstore/u0a131 (started-services)
    Proc #29: svcb  B/ /S  trm: 0 2174:com.qihoo.daemon/u0a131 (started-services)
    Proc #25: svcb  B/ /S  trm: 0 5946:com.chaozh.iReaderFree15:ppp/u0a120 (started-services)
    Proc #24: svcb  B/ /S  trm: 0 1858:ixz.fish_help_app:pushservice/u0a157 (started-services)
    Proc #19: svcb  B/ /S  trm: 0 2774:cn.ninegame.gamemanager.yz:push/u0a122 (started-services)
    Proc #43: cch   B/ /S  trm: 0 30222:com.sina.weibo.imageservant/u0a114 (service)
        com.sina.weibo/.business.ImageUtilService<=Proc{29031:com.sina.weibo/u0a114}
    Proc # 7: cch   B/ /S  trm: 0 12513:com.immomo.momo/u0a125 (cch-started-ui-services)
    Proc # 4: cch   B/ /S  trm: 0 29031:com.sina.weibo/u0a114 (cch-started-ui-services)
    Proc # 3: cch   B/ /S  trm: 0 5515:com.tencent.mm/u0a127 (cch-started-ui-services)
    Proc #13: cch+2 B/ /CE trm: 0 2304:com.pdager/u0a103 (cch-empty)
    Proc #12: cch+2 B/ /CE trm: 0 32087:com.huawei.systemmanager/1000 (cch-empty)
    Proc #11: cch+2 B/ /S  trm: 0 7920:com.huawei.bd/1000 (cch-started-services)
    Proc #18: cch+4 B/ /CE trm: 0 2930:com.eg.android.AlipayGphone/u0a128 (cch-empty)
    Proc #17: cch+4 B/ /CE trm: 0 2984:com.eg.android.AlipayGphone:push/u0a128 (cch-empty)
    Proc #15: cch+4 B/ /S  trm: 0 6874:com.akazam.android.wlandialer/u0a101 (cch-started-services)
    Proc #47: cch+6 B/ /S  trm: 0 7436:com.autonavi.minimap:locationservice/u0a154 (cch-started-services)
    Proc #46: cch+6 B/ /S  trm: 0 7976:com.qualcomm.qcrilmsgtunnel/1001 (cch-started-services)
    Proc #45: cch+6 B/ /S  trm: 0 8021:com.huawei.DiagReboot/1000 (cch-started-services)
    Proc #44: cch+6 B/ /S  trm: 0 6148:com.huawei.floatMms/u0a40 (cch-started-services)
    Proc #41: cch+6 B/ /S  trm: 0 30134:com.sina.weibo.image/u0a114 (cch-started-services)
    Proc #40: cch+6 B/ /S  trm: 0 11758:com.google.android.gms.drive/u0a9 (cch-started-services)
    Proc #38: cch+6 B/ /S  trm: 0 7210:com.huawei.android.ds/1001 (cch-started-services)
    Proc #37: cch+6 B/ /S  trm: 0 18503:com.google.process.gapps/u0a9 (cch-started-services)
    Proc #36: cch+6 B/ /CE trm: 0 9231:com.android.defcontainer/u0a3 (cch-empty)
    Proc #34: cch+6 B/ /CE trm: 0 32290:com.chinatelecom.pim/u0a88 (cch-empty)
    Proc #33: cch+6 B/ /CE trm: 0 32311:com.autonavi.minimap/u0a154 (cch-empty)
    Proc #32: cch+6 B/ /CE trm: 0 26787:com.huawei.motionservice/u0a47 (cch-empty)
    Proc #31: cch+6 B/ /CE trm: 0 13429:com.huawei.android.totemweather/u0a60 (cch-empty)
    Proc #27: cch+6 B/ /CE trm: 0 12291:com.huawei.phoneservice:loguploadservice/u0a12 (cch-empty)
    Proc #23: cch+6 B/ /CE trm: 0 21413:com.android.browser/u0a2 (cch-empty)
    Proc #22: cch+6 B/ /CE trm: 0 2751:cn.ninegame.gamemanager.yz/u0a122 (cch-empty)

  Bad processes:
    Bad process ixz.fish_help_app uid 10156: crashed at time 116483740
      Short msg: java.lang.ClassNotFoundException
      Long msg: java.lang.ClassNotFoundException: Didn't find class "ixz.fish_help_app.fish_app" on path: DexPathList[[zip file "/data/app/ixz.fish_help_app-2.apk"],nativeLibraryDirectories=[/data/app-lib/ixz.fish_help_app-2, /vendor/lib, /system/lib, /data/datalib]]
      Stack:
        java.lang.RuntimeException: Unable to instantiate application ixz.fish_help_app.fish_app: java.lang.ClassNotFoundException: Didn't find class "ixz.fish_help_app.fish_app" on path: DexPathList[[zip file "/data/app/ixz.fish_help_app-2.apk"],nativeLibraryDirectories=[/data/app-lib/ixz.fish_help_app-2, /vendor/lib, /system/lib, /data/datalib]]
            at android.app.LoadedApk.makeApplication(LoadedApk.java:525)
            at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4605)
            at android.app.ActivityThread.access$1800(ActivityThread.java:141)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1298)
            at android.os.Handler.dispatchMessage(Handler.java:102)
            at android.os.Looper.loop(Looper.java:136)
            at android.app.ActivityThread.main(ActivityThread.java:5336)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:515)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)
            at dalvik.system.NativeStart.main(Native Method)
        Caused by: java.lang.ClassNotFoundException: Didn't find class "ixz.fish_help_app.fish_app" on path: DexPathList[[zip file "/data/app/ixz.fish_help_app-2.apk"],nativeLibraryDirectories=[/data/app-lib/ixz.fish_help_app-2, /vendor/lib, /system/lib, /data/datalib]]
            at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
            at android.app.Instrumentation.newApplication(Instrumentation.java:976)
            at android.app.LoadedApk.makeApplication(LoadedApk.java:520)
            ... 11 more

  mStartedUsers:
    User #0: mState=RUNNING
  mStartedUserArray: [0]
  mUserLru: [0]
  mHomeProcess: ProcessRecord{436d1200 1421:com.huawei.android.launcher/u0a44}
  mPreviousProcess: ProcessRecord{435abd90 12159:com.android.settings/1000}
  mConfiguration: {1.0 460mcc3mnc zh_CN ldltr sw360dp w360dp h615dp 320dpi nrml long port finger -keyb/v/h -nav/h suim:1 s.33}
  mDebugApp=null/orig=null mDebugTransient=true mOrigWaitForDebugger=false

androidmainfest.xml上面的路徑是合適的,在windows上沒問題,調試正常的

最佳回答:


我一般有問題就會拿去檢測平台檢測,不然這樣一行一行的查,有點費時,等到檢測出來有檢測報告,然後在根據上面出現的錯誤來改,不過你源文件要先保存一份,這樣會妥妥的。
我用的是這個http://t.cn/R2cgU94 ,不知道你的能不能用,可以先試試

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved