Android不混淆没问题,混淆后无法启动

胜天半子 2019-11-08 05:39:26
2019-11-08 17:38:53.632 588-588/? E/WifiHAL: enter wifi_get_link_stats
2019-11-08 17:38:53.638 1465-1657/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-11-08 17:38:53.943 754-910/? E/JankService: specialActionEntryHandler: should reset and not report
2019-11-08 17:38:53.961 1465-1946/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc
2019-11-08 17:38:53.966 8089-8089/? E/.cmii.ambulanc: Not starting debugger since process cannot load the jdwp agent.
2019-11-08 17:38:53.986 2027-3003/? E/AwareLog: SPKSchedFeature: Uid has been sent, ignore.
2019-11-08 17:38:53.998 2027-3091/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null
2019-11-08 17:38:53.999 1927-2381/? E/XEngineMpipControl: Invalid SubId
2019-11-08 17:38:53.999 1927-2381/? E/Hicom_PolicyCenterService: handleForeGroundAppChanged. INVALID_UID
2019-11-08 17:38:54.023 8089-8089/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.cmcc.cmii.ambulance, PID: 8089
java.lang.RuntimeException: Unable to instantiate application com.cmcc.cmii.app.MyApplication: java.lang.RuntimeException: Stub!
at android.app.LoadedApk.makeApplication(LoadedApk.java:1183)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6688)
at android.app.ActivityThread.access$2000(ActivityThread.java:273)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2020)
at android.os.Handler.dispatchMessage(Handler.java:112)
at android.os.Looper.loop(Looper.java:216)
at android.app.ActivityThread.main(ActivityThread.java:7625)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987)
Caused by: java.lang.RuntimeException: Stub!
at a.g.i.<init>(Unknown Source:7)
at a.g.j.<init>(Unknown Source:0)
at a.c.d.<init>(Unknown Source:1)
at com.cmcc.cmii.app.MyApplication.<init>(Unknown Source:0)
at java.lang.Class.newInstance(Native Method)
at android.app.AppComponentFactory.instantiateApplication(AppComponentFactory.java:50)
at android.app.Instrumentation.newApplication(Instrumentation.java:1127)
at android.app.LoadedApk.makeApplication(LoadedApk.java:1175)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6688) 
at android.app.ActivityThread.access$2000(ActivityThread.java:273) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2020) 
at android.os.Handler.dispatchMessage(Handler.java:112) 
at android.os.Looper.loop(Looper.java:216) 
at android.app.ActivityThread.main(ActivityThread.java:7625) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:524) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:987) 
2019-11-08 17:38:54.028 754-2837/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.029 754-2837/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.030 754-2837/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.030 754-12040/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.033 754-12040/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.034 754-12040/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.039 754-12040/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.039 754-12041/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.040 754-12041/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.041 754-12041/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.041 754-12041/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.041 754-12042/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.041 754-12042/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.042 754-12042/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.042 1927-1945/? E/HsmCoreServiceImpl: onTransact in code is: 102
2019-11-08 17:38:54.043 2027-3091/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null
2019-11-08 17:38:54.043 1927-2381/? E/Hicom_PolicyCenterService: unrecognized exception captured during handleMessage: 68 exception: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.huawei.systemserver.emcom.policycenter.policycenterservice.decisionsystem.AppLifeCycleManager.rmAppAllSocketClosed(int)' on a null object reference
2019-11-08 17:38:54.044 754-12042/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return.
2019-11-08 17:38:54.062 2027-3003/? E/AwareLog: SPKSchedFeature: Uid has been sent, ignore.
2019-11-08 17:38:54.062 1927-2381/? E/XEngineMpipControl: Invalid SubId
2019-11-08 17:38:54.083 1465-1752/? E/HiDATA_HiNetwork: monitor handleActivityChange curPkgName is com.huawei.android.launcher curUid is 10063 lastPkgName is :com.huawei.android.launcher
2019-11-08 17:38:54.083 1927-8118/? E/DollieAdapterService: notifyActivityState pkg:com.huawei.android.launcher/com.huawei.android.launcher.unihome.UniHomeLauncher state:2 fg:true mUid:10063
2019-11-08 17:38:54.092 16405-16433/? E/[HwRecSys]CandidateSetHelper: getHwCandidateByPkgAndActivity -> this pkg HwCandidates is null!
2019-11-08 17:38:54.245 730-865/? E/dubaid: [CpuHandler.cpp] findUidEntry# Uid(10286) has not package, maybe it's already uninstalled
2019-11-08 17:38:54.245 730-865/? E/dubaid: [CpuHandler.cpp] setUidCpuTime# Failed to find uid entry
2019-11-08 17:38:54.337 1465-1482/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc
2019-11-08 17:38:54.627 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:38:55.662 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:38:56.646 588-588/? E/WifiHAL: enter wifi_get_link_stats
2019-11-08 17:38:56.650 1465-1657/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-11-08 17:38:56.662 8109-8109/? E/JankService: child Thread receive to stop
2019-11-08 17:38:56.689 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:38:56.802 754-907/? E/JankService: all data read ok
2019-11-08 17:38:57.275 2255-2416/? E/HSM_Install_BG: NatTrafficNotifyService:imsi is null, so return
2019-11-08 17:38:57.729 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:38:58.770 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:38:59.261 1465-1657/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-11-08 17:38:59.654 588-588/? E/WifiHAL: enter wifi_get_link_stats
2019-11-08 17:38:59.657 1465-1657/? E/WificondControl: Noise: 0, Snr: -1, Chload: -1
2019-11-08 17:38:59.791 754-3123/? E/LOGSERVER_UTILS: [Erecovery]readEvent: eRecEventManager readEvent 0
2019-11-08 17:39:00.036 1829-1829/? E/DateView: DateView,mCurrentTime: 1573205940036
...全文
4436 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
王能 2019-11-11
  • 打赏
  • 举报
回复
混淆错了,需要配置一些忽略,可以参考这篇博客:https://blog.csdn.net/weimingjue/article/details/84976058
laoyouzhazi 2019-11-09
  • 打赏
  • 举报
回复
将出错的类或类方法加进混淆白名单
m-oj 应用层 2019-11-08
  • 打赏
  • 举报
回复
用你的mapping文件把日志反混淆一下就知道是什么问题了
胜天半子 2019-11-08
  • 打赏
  • 举报
回复
class MyApplication : Application() { companion object { private var instance: Application? = null fun instance() = instance!! val TOKEN_SHARE_PRE = "token" val USERNAME = "username" val PASSWORD = "password" val IMEIVALUE = "imei" //static 代码段可以防止内存泄露 init { //设置全局的Header构建器 SmartRefreshLayout.setDefaultRefreshHeaderCreator(DefaultRefreshHeaderCreator { context, layout -> val header = ClassicsHeader(context).setSpinnerStyle(SpinnerStyle.Translate) header.setPrimaryColorId(R.color.colorPrimary) header.setAccentColorId(android.R.color.white) header//指定为经典Header,默认是 贝塞尔雷达Header }) //设置全局的Footer构建器 SmartRefreshLayout.setDefaultRefreshFooterCreator(DefaultRefreshFooterCreator { context, layout -> layout.setEnableLoadMoreWhenContentNotFull(true)//内容不满一页时候启用加载更多 val footer = ClassicsFooter(context) footer.setBackgroundResource(android.R.color.white) footer.spinnerStyle = SpinnerStyle.Scale//设置为拉伸模式 footer//指定为经典Footer,默认是 BallPulseFooter }) } } override fun onCreate() { super.onCreate() instance = this initLoggerInfo() // initUatCer() SpeechUtility.createUtility(applicationContext, null) //initLeakCanary() } /** * 初始化内存泄漏检测工具LeakCanary */ // private fun initLeakCanary() { // if (false){ // if (LeakCanary.isInAnalyzerProcess(this)) { // // This process is dedicated to LeakCanary for heap analysis. // // You should not init your app in this process. // return // } // LeakCanary.install(this) // } // } override fun attachBaseContext(base: Context?) { super.attachBaseContext(base) MultiDex.install(this) } fun initLoggerInfo() { // var formatStrategy = PrettyFormatStrategy.newBuilder() // .showThreadInfo(true) //(可选)是否显示线程信息。默认值为true // .methodCount(2) //(可选)要显示的方法行数。默认值2 // .methodOffset(5) //(可选)隐藏内部方法调用到偏移量。默认5 //// .logStrategy(customLog)//(可选)更改要打印的日志策略。默认LogCat //// .tag("我的自定义标签") //(可选)每个日志的全局标签。默认PRETTY_LOGGER // .build() Logger.addLogAdapter(AndroidLogAdapter()) } // fun initUatCer() { // if (HttpConfig.IS_UAT) { // try { // OKHttpFactory.setCertificates(assets.open("uat_dev_hrx_ai.cer")) // } catch (e: IOException) { // e.printStackTrace() // } // } // }

80,357

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧