Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start Android application immediate crash by bazel tutorial #120

Open
chiaruy opened this issue Sep 20, 2019 · 10 comments
Open

Start Android application immediate crash by bazel tutorial #120

chiaruy opened this issue Sep 20, 2019 · 10 comments

Comments

@chiaruy
Copy link

chiaruy commented Sep 20, 2019

Ubuntu :18.04
My Bazel version : 0.26.1
SDK API :29
NDK : 20
Mobile phone android version: 8

I follow https://docs.bazel.build/versions/master/tutorial/android-app.html step, but opend the application immediate crash.
using android studio create simple procedue without bazel can work well.

Help me solve this problem, please~
Thank you all.

@jin
Copy link
Member

jin commented Sep 20, 2019

Can you post the logcat output here? https://developer.android.com/studio/command-line/logcat

@chiaruy
Copy link
Author

chiaruy commented Sep 21, 2019

2019-09-22 01:36:40.046 2494-2494/? D/Launcher: Launcher.dispatchTouchEvent:0
2019-09-22 01:36:40.047 2494-2494/? D/FeedSwipeController: touchState : 0 scrolling : false normalEditing : false WidgetThumbnailViewShowing : false UninstallDialogShowing : false
2019-09-22 01:36:40.057 2494-2494/? W/System.err: java.lang.ClassNotFoundException: com.miui.newhome.util.WhiteListUtils
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at java.lang.Class.classForName(Native Method)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at java.lang.Class.forName(Class.java:453)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at java.lang.Class.forName(Class.java:378)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.touch.UiFactory.getRelectMethod(UiFactory.java:46)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.touch.UiFactory.isShowNews(UiFactory.java:34)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.settings.LauncherGestureController.canUseHomeFeed(LauncherGestureController.java:122)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.touch.FeedSwipeController.canInterceptTouch(FeedSwipeController.java:469)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.touch.FeedSwipeController.onControllerInterceptTouchEvent(FeedSwipeController.java:76)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.DragLayer.findActiveController(DragLayer.java:272)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.DragLayer.onInterceptTouchEvent(DragLayer.java:262)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2504)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.DragLayer.dispatchTouchEvent(DragLayer.java:193)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.MinusOneScreenView.dispatchTouchEvent(MinusOneScreenView.java:174)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2593)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at com.miui.home.launcher.ForceTouchLayer.dispatchTouchEvent(ForceTouchLayer.java:97)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2593)
2019-09-22 01:36:40.058 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2593)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTransformedTouchEvent(ViewGroup.java:2963)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:2593)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at com.android.internal.policy.DecorView.superDispatchTouchEvent(DecorView.java:448)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at com.android.internal.policy.PhoneWindow.superDispatchTouchEvent(PhoneWindow.java:1828)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.app.Activity.dispatchTouchEvent(Activity.java:3346)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at com.miui.home.launcher.Launcher.dispatchTouchEvent(Launcher.java:3504)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at com.android.internal.policy.DecorView.dispatchTouchEvent(DecorView.java:410)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.View.dispatchPointerEvent(View.java:11975)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.processPointerEvent(ViewRootImpl.java:4836)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4647)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4236)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4202)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4329)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4210)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4386)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4236)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4202)
2019-09-22 01:36:40.059 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4210)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4183)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6743)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6717)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6678)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:6849)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:249)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.os.MessageQueue.nativePollOnce(Native Method)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.os.MessageQueue.next(MessageQueue.java:325)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.os.Looper.loop(Looper.java:148)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6698)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at java.lang.reflect.Method.invoke(Native Method)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
2019-09-22 01:36:40.060 2494-2494/? W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
2019-09-22 01:36:40.061 2494-2494/? W/System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.miui.newhome.util.WhiteListUtils" on path: DexPathList[[zip file "/data/app/com.mi.android.globalpersonalassistant-GTpTv6WEABG_kwuiFf-YOw==/base.apk", zip file "/system/framework/gson.jar", zip file "/data/app/com.miui.home-IELZKx4JaTFGNaTUjp6xlQ==/base.apk"],nativeLibraryDirectories=[/data/app/com.miui.home-IELZKx4JaTFGNaTUjp6xlQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]
2019-09-22 01:36:40.061 2494-2494/? W/System.err: at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
2019-09-22 01:36:40.062 2494-2494/? W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
2019-09-22 01:36:40.062 2494-2494/? W/System.err: at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
2019-09-22 01:36:40.062 2494-2494/? W/System.err: ... 53 more
2019-09-22 01:36:40.062 2494-2494/? D/FeedSwipeController: can not use
2019-09-22 01:36:40.063 2494-2494/? D/Launcher.Workspace: Workspace touch down
2019-09-22 01:36:40.065 2494-2494/? D/Launcher: Launcher.dispatchTouchEvent:1
2019-09-22 01:36:40.065 2494-2494/? D/Launcher.Workspace: Workspace touch up or cancel
2019-09-22 01:36:40.065 2494-2837/? I/RenderThread: RenderThread resumed
2019-09-22 01:36:40.066 2494-2837/? I/RenderThread: All controllers paused.
2019-09-22 01:36:40.066 2494-2837/? I/RenderThread: RenderThread paused, waiting for signal
2019-09-22 01:36:40.069 2494-2494/? I/Timeline: Timeline: Activity_launch_request time:1073962 intent:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.bazel/.MainActivity bnds=[829,1305][997,1473] (has extras) }
2019-09-22 01:36:40.070 1696-3191/? W/XSpaceManagerService: checkXSpaceControl, from:com.miui.home, to:com.example.bazel, with act:android.intent.action.MAIN, callingUserId:0, toUserId:0
2019-09-22 01:36:40.072 1696-3191/? I/ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.bazel/.MainActivity bnds=[829,1305][997,1473] (has extras)} from uid 10029
2019-09-22 01:36:40.074 1696-3191/? E/ANDR-PERF-JNI: com_qualcomm_qtiperformance_native_perf_io_prefetch_start
2019-09-22 01:36:40.074 1696-3191/? E/ANDR-PERF-JNI: gIOPHAl initialized
2019-09-22 01:36:40.077 1696-3191/? E/ANDR-PERF-JNI: gIOPHAl calling iopstart from default
2019-09-22 01:36:40.077 587-587/? E/ANDR-IOP: IOP HAL: Received pkg_name = com.example.bazel pid = -1
2019-09-22 01:36:40.077 587-587/? E/ANDR-IOP: event data pool ran empty
2019-09-22 01:36:40.080 1696-3191/? W/WindowManager: Attempted to set focus to non-existing app token: Token{9b0bcdc ActivityRecord{7f3a1e5 u0 com.example.bazel/.MainActivity t1011}}
2019-09-22 01:36:40.081 1696-3191/? D/ActivityTrigger: activityStartTrigger: Activity is Triggerred in full screen ApplicationInfo{ebbccc4 com.example.bazel}
2019-09-22 01:36:40.081 1696-3191/? E/ActivityTrigger: activityStartTrigger: not whiteListedcom.example.bazel/com.example.bazel.MainActivity/1
2019-09-22 01:36:40.082 1696-3191/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.082 1696-3191/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.082 1696-3191/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.083 1696-3191/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{ebbccc4 com.example.bazel} is now in focus and seems to be in full-screen mode
2019-09-22 01:36:40.083 1696-3191/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.example.bazel/com.example.bazel.MainActivity/1
2019-09-22 01:36:40.083 1696-3191/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2019-09-22 01:36:40.090 1696-3614/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{ebbccc4 com.example.bazel} is now in focus and seems to be in full-screen mode
2019-09-22 01:36:40.090 1696-3614/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.example.bazel/com.example.bazel.MainActivity/1
2019-09-22 01:36:40.105 1696-3614/? D/Boost: hostingType=activity, hostingName=com.example.bazel/.MainActivity, callerPackage=com.miui.home, isSystem=true, isBoostNeeded=false.
2019-09-22 01:36:40.105 1696-3614/? I/ActivityManager: Start proc 10569:com.example.bazel/u0a193 for activity com.example.bazel/.MainActivity caller=com.miui.home
2019-09-22 01:36:40.105 4052-4248/? D/PowerKeeper.Event: notifyAMProcStart processName: 10193 reason: com.example.bazel, pid:0
2019-09-22 01:36:40.110 2494-2595/? D/Launcher: disableStatusBarClock:false
2019-09-22 01:36:40.110 10569-10569/? I/zygote64: Late-enabling -Xcheck:jni
2019-09-22 01:36:40.169 1696-3614/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.169 1696-3614/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.169 1696-3614/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.173 1696-3614/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.173 1696-3614/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.173 1696-3614/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.177 3235-9283/? D/GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.example.bazel', mForegroundUid=10193, mForegroundPid=10569, mLastForegroundPackageName='com.miui.home', mLastForegroundUid=10029, mLastForegroundPid=2494, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=1}
2019-09-22 01:36:40.179 1696-3614/? I/Timeline: Timeline: App_transition_ready time:1074073
2019-09-22 01:36:40.180 3652-3652/? D/MyAccessibility: mForegroundPackageName = com.example.bazel ClassName android.widget.FrameLayout
2019-09-22 01:36:40.180 3652-3652/? D/MyAccessibility: mWorkingPackageName = mWorkingClassName
2019-09-22 01:36:40.186 3112-7775/? W/PushService: 2019-09-22 01:36:40,185 - [WARN::PushService] - send dismiss message
2019-09-22 01:36:40.186 3112-7775/? W/PushService: 2019-09-22 01:36:40,186 - [WARN::PushService] - isNotify:true
2019-09-22 01:36:40.186 3112-3112/? W/PushService: 2019-09-22 01:36:40,186 - [WARN::PushService] - handle dismiss message
2019-09-22 01:36:40.189 2303-2303/? D/StatusBar: disable disable2
2019-09-22 01:36:40.196 3112-7775/? W/PushService: 2019-09-22 01:36:40,190 - [WARN::PushService] - whiteStr:com.esenyun.workline#com.mysteel.android.steelphone#com.chaojitao.star#com.rytong.airchina#com.hhmedic.app.doctornotifacation#com.wenwanmi.app#com.janyee.buddha#com.xiangchang#com.lhzdtech.eschool#com.yeecli.doctor.activity#com.sqview.arcard#com.store.guide#com.android.ayplatform#com.shengtaian.baizhuan#com.pajiaos.meifeng#com.cy.cyd#com.langgan.haoshuimian#com.ctcf.jgpush#com.wuba.weiyingxiao#cs51ztb.com.android.app#com.xiwei.logistics#com.hecom.omsclient#cn.com.wealth365.licai#com.hecom.mgm#com.cloudshixi.tutor#com.mnzwwj.ios#com.android.kysoft#com.finereact#com.smartdoorbell.lzzn#org.sojex.finance#com.hyww.wisdomtreebroomall#com.renrenche.1267#com.thai.vtalk#cn.cowboy9666.live#com.tanbeixiong.tbx_android#com.renrenche.743#com.bishijie#com.niu.niuyin#com.acematic.simplecity#air.tv.douyu.android#com.waqu.android.general_video#com.dianhuo.android#cn.soolife.android.ShoppingPhone.develop#com.nodez.dream#com.gsb.xtongda#com.qbsapp#com.wy.carstore#xiangguan.yingdongkeji.com.threeti#com.physicmaster#com.secrui.cloud#com.android.tataufo#com.haigou.live#com.xiaohongchun.redlips#com.enniu.jiedao#com.winupon.weike.android#com.wecash.housekeeper#com.cutt.zhiyue.android.app1564462#com.gooday.gmyzwwji#com.aladdin.dangdang#com.enniu.fund#com.yeepay.hbird#im.yixin.qiye#com.guogu.ismartandroid2#com.jibo.healthdoctor#com.cn87.cailiao#com.jlb.zhixuezhen.app#com.bocommlife.healthywalk#com.didisos.njjg#com.transit.app.driverapp#com.panding.main#com.app.xianjinqianbao#com.youloft.calendar#com.yuyin.myclass#com.ts.zys#com.renrenche.1263#com.xy.gl#com.mst.activity#com.ggzwwj.ios#com.waqu.android.general_child#com.diichip.idogpotty#com.bunnyfit_app#com.wh.assistant.rebuildeyes#com.app.xianjinjisuda#com.expflow.reading#com.zdnst.cxt#com.lanjingren.ivwen#com.qikevip.app#com.hn.yd.oa#com.tuniu.app.ui#com.hpkj.yzfm#cn.aedu.v1.ui#com.babychat.teacher#com.xiaohuibang.app#com.chips.client.debug#cn.igap.sale#com.etyiot.eartag#cn.mlyajy.mlyajy#com.transfar.transfarmobileoa#com.hecom.waiqin#co.welab.wolaidai#com.pointercn.yunvs#io.dcloud.H5A74CF18#com.souget.kpl#cn.com.yomo#com.secrui.smarthome#kjkj.zhaocai.wealth#com.kdkj.pinyou#com.renrenche.carapp#com.guoding.kesudai#com.smartlbs.idaoweiv7#com.tongzhuo.tongzhuogame#com.ksyun.ksc.onepiece#com.tencent.tako.muses#com.xfanread.xfanread#com.kingsoft#com.asiainno.uplive#com.and.bingo#com.seebaby#com.wbxm.icartoon#com.dinglc.app#com.meishubao.client#com.shineyue.sjgjj#cn.zymk.comic#yuschool.com.student#com.superrhino.rarering#com.fantaohua#com.dongdongkeji.wangwangsocial#com.loovee.wawaji#com.lmzwwj.ios#com.chinablue.tv#com.eelly.buyer#com.guangmang.xiumi#com.mmmono.mono#com.yilegame.yjsg2.mi#com.example.tbao#com.thel#com.haitun.neets#com.mosoink.mosoteach#com.ckjr.qsl#com.chushou.findingme#com.cutt.zhiyue.android.app1564450#com.wedone.smarthic.app#com.nineteenlou.nineteenlou#com.renrenche.745#com.spd.mobile#com.app.jieqianma#com.e23.ajn#com.lecai#cn.zdkj.ybt#com.zl.daka#com.miaomi.miaomiao#com.jinxin.namibox#com.mejust.merchant#com.weipei3.weipeiclient#com.haocainet.quanzhong123#com.wefax.wallete#com.secrui.w17#com.ourydc.yuebaobao#com.yotin.seedbank#com.blockmeta.bbs#cc.fccn.bizim#cn.creditease.fso.crediteasemanager#com.scwl.daiyu#cn.cooldailpos#com.max.xiaoheihe#com.rednet.moment#com.kp5000.Main#com.xianjinxiaoge.main#com.cctir.huinongbao#com.henkuai.chain#com.huya.keke#com.huoban.mayitong#com.bjfontcl.repairandroidbx#com.zhangxiong.art#com.android36kr.app#net.medlinker.medlinker#com.jiayou.qianheshengyun.app#cn.com.pcauto.pocket#com.neoteched.shenlancity#com.tencent.good321.galaxyreavers2#com.bdl.sgb#com.lincomb.licai#com.qiulianai.main#com.inmeapp.dream#com.bingo.heihei#com.knrt.doctor#com.insurance.agency#com.kufeng.hj.enjoy#cn.gog.livegz#com.haocainet.lianzhong#com.mxzwwj.android#com.jf.lkrj#com.xianleian.farm#com.same.wawaji#com.vanwell.module.zhefengle.app#com.gou.youyou#com.dkhs.stock#com.hxqydyl.androidapp#me.ddkj.qv#com.xiwei.logistics.consignor#com.zhangku.qukandian#com.wolaidai365.android.zyd#co
2019-09-22 01:36:40.199 3112-7775/? W/PushService: 2019-09-22 01:36:40,198 - [WARN::PushService] - whiteList:[com.esenyun.workline, com.mysteel.android.steelphone, com.chaojitao.star, com.rytong.airchina, com.hhmedic.app.doctornotifacation, com.wenwanmi.app, com.janyee.buddha, com.xiangchang, com.lhzdtech.eschool, com.yeecli.doctor.activity, com.sqview.arcard, com.store.guide, com.android.ayplatform, com.shengtaian.baizhuan, com.pajiaos.meifeng, com.cy.cyd, com.langgan.haoshuimian, com.ctcf.jgpush, com.wuba.weiyingxiao, cs51ztb.com.android.app, com.xiwei.logistics, com.hecom.omsclient, cn.com.wealth365.licai, com.hecom.mgm, com.cloudshixi.tutor, com.mnzwwj.ios, com.android.kysoft, com.finereact, com.smartdoorbell.lzzn, org.sojex.finance, com.hyww.wisdomtreebroomall, com.renrenche.1267, com.thai.vtalk, cn.cowboy9666.live, com.tanbeixiong.tbx_android, com.renrenche.743, com.bishijie, com.niu.niuyin, com.acematic.simplecity, air.tv.douyu.android, com.waqu.android.general_video, com.dianhuo.android, cn.soolife.android.ShoppingPhone.develop, com.nodez.dream, com.gsb.xtongda, com.qbsapp, com.wy.carstore, xiangguan.yingdongkeji.com.threeti, com.physicmaster, com.secrui.cloud, com.android.tataufo, com.haigou.live, com.xiaohongchun.redlips, com.enniu.jiedao, com.winupon.weike.android, com.wecash.housekeeper, com.cutt.zhiyue.android.app1564462, com.gooday.gmyzwwji, com.aladdin.dangdang, com.enniu.fund, com.yeepay.hbird, im.yixin.qiye, com.guogu.ismartandroid2, com.jibo.healthdoctor, com.cn87.cailiao, com.jlb.zhixuezhen.app, com.bocommlife.healthywalk, com.didisos.njjg, com.transit.app.driverapp, com.panding.main, com.app.xianjinqianbao, com.youloft.calendar, com.yuyin.myclass, com.ts.zys, com.renrenche.1263, com.xy.gl, com.mst.activity, com.ggzwwj.ios, com.waqu.android.general_child, com.diichip.idogpotty, com.bunnyfit_app, com.wh.assistant.rebuildeyes, com.app.xianjinjisuda, com.expflow.reading, com.zdnst.cxt, com.lanjingren.ivwen, com.qikevip.app, com.hn.yd.oa, com.tuniu.app.ui, com.hpkj.yzfm, cn.aedu.v1.ui, com.babychat.teacher, com.xiaohuibang.app, com.chips.client.debug, cn.igap.sale, com.etyiot.eartag, cn.mlyajy.mlyajy, com.transfar.transfarmobileoa, com.hecom.waiqin, co.welab.wolaidai, com.pointercn.yunvs, io.dcloud.H5A74CF18, com.souget.kpl, cn.com.yomo, com.secrui.smarthome, kjkj.zhaocai.wealth, com.kdkj.pinyou, com.renrenche.carapp, com.guoding.kesudai, com.smartlbs.idaoweiv7, com.tongzhuo.tongzhuogame, com.ksyun.ksc.onepiece, com.tencent.tako.muses, com.xfanread.xfanread, com.kingsoft, com.asiainno.uplive, com.and.bingo, com.seebaby, com.wbxm.icartoon, com.dinglc.app, com.meishubao.client, com.shineyue.sjgjj, cn.zymk.comic, yuschool.com.student, com.superrhino.rarering, com.fantaohua, com.dongdongkeji.wangwangsocial, com.loovee.wawaji, com.lmzwwj.ios, com.chinablue.tv, com.eelly.buyer, com.guangmang.xiumi, com.mmmono.mono, com.yilegame.yjsg2.mi, com.example.tbao, com.thel, com.haitun.neets, com.mosoink.mosoteach, com.ckjr.qsl, com.chushou.findingme, com.cutt.zhiyue.android.app1564450, com.wedone.smarthic.app, com.nineteenlou.nineteenlou, com.renrenche.745, com.spd.mobile, com.app.jieqianma, com.e23.ajn, com.lecai, cn.zdkj.ybt, com.zl.daka, com.miaomi.miaomiao, com.jinxin.namibox, com.mejust.merchant, com.weipei3.weipeiclient, com.haocainet.quanzhong123, com.wefax.wallete, com.secrui.w17, com.ourydc.yuebaobao, com.yotin.seedbank, com.blockmeta.bbs, cc.fccn.bizim, cn.creditease.fso.crediteasemanager, com.scwl.daiyu, cn.cooldailpos, com.max.xiaoheihe, com.rednet.moment, com.kp5000.Main, com.xianjinxiaoge.main, com.cctir.huinongbao, com.henkuai.chain, com.huya.keke, com.huoban.mayitong, com.bjfontcl.repairandroidbx, com.zhangxiong.art, com.android36kr.app, net.medlinker.medlinker, com.jiayou.qianheshengyun.app, cn.com.pcauto.pocket, com.neoteched.shenlancity, com.tencent.good321.galaxyreavers2, com.bdl.sgb, com.lincomb.licai, com.qiulianai.main, com.inmeapp.dream, com.bingo.heihei, com.knrt.doctor, com.insurance.agency, com.kufeng.hj.enjoy, cn.gog.livegz, com.haocainet.lianzhong, com.mxzwwj.android, com.jf.lkrj, com.xianleian.farm,
2019-09-22 01:36:40.217 10569-10569/com.example.bazel W/ResourceType: No package identifier when getting name for resource number 0x00000000
2019-09-22 01:36:40.338 10569-10569/com.example.bazel V/StubApplication: StubApplication created. Android package is com.example.bazel, real application class is android.app.Application.
2019-09-22 01:36:40.339 10569-10569/com.example.bazel V/StubApplication: Found external resources at /data/local/tmp/incrementaldeployment/com.example.bazel/resources.ap_
2019-09-22 01:36:40.341 10569-10569/com.example.bazel V/IncrementalClassLoader: Incremental dex path is /data/local/tmp/incrementaldeployment/com.example.bazel/dex/incremental_classes1.dex
2019-09-22 01:36:40.341 10569-10569/com.example.bazel V/IncrementalClassLoader: Native lib dir is /data/user/0/com.example.bazel/lib
2019-09-22 01:36:40.344 10569-10569/com.example.bazel V/INCREMENTAL: disableContentProviders
2019-09-22 01:36:40.347 10569-10569/com.example.bazel W/ResourceType: No package identifier when getting name for resource number 0x00000000
2019-09-22 01:36:40.349 10569-10569/com.example.bazel D/AndroidRuntime: Shutting down VM
2019-09-22 01:36:40.352 10569-10569/com.example.bazel E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.bazel, PID: 10569
java.lang.RuntimeException: Unable to create application com.google.devtools.build.android.incrementaldeployment.StubApplication: java.lang.IllegalStateException: java.lang.NoSuchFieldException: No field mAssets in class Landroid/content/res/MiuiResourcesImpl; (declaration of 'android.content.res.MiuiResourcesImpl' appears in /system/framework/framework.jar)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5880)
at android.app.ActivityThread.-wrap1(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:173)
at android.app.ActivityThread.main(ActivityThread.java:6698)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)
Caused by: java.lang.IllegalStateException: java.lang.NoSuchFieldException: No field mAssets in class Landroid/content/res/MiuiResourcesImpl; (declaration of 'android.content.res.MiuiResourcesImpl' appears in /system/framework/framework.jar)
at com.google.devtools.build.android.incrementaldeployment.StubApplication.monkeyPatchExistingResources(StubApplication.java:320)
at com.google.devtools.build.android.incrementaldeployment.StubApplication.onCreate(StubApplication.java:569)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5877)
at android.app.ActivityThread.-wrap1(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:173) 
at android.app.ActivityThread.main(ActivityThread.java:6698) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) 
Caused by: java.lang.NoSuchFieldException: No field mAssets in class Landroid/content/res/MiuiResourcesImpl; (declaration of 'android.content.res.MiuiResourcesImpl' appears in /system/framework/framework.jar)
at java.lang.Class.getDeclaredField(Native Method)
at com.google.devtools.build.android.incrementaldeployment.StubApplication.monkeyPatchExistingResources(StubApplication.java:312)
at com.google.devtools.build.android.incrementaldeployment.StubApplication.onCreate(StubApplication.java:569) 
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1119) 
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5877) 
at android.app.ActivityThread.-wrap1(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1690) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:173) 
at android.app.ActivityThread.main(ActivityThread.java:6698) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782) 
2019-09-22 01:36:40.366 4052-4248/? D/PowerKeeper.Event: notifyAMCrash packageName: 0, pid:10569
2019-09-22 01:36:40.366 1696-3191/? W/ActivityManager: Force finishing activity com.example.bazel/.MainActivity
2019-09-22 01:36:40.367 1696-3191/? D/ActivityTrigger: ActivityTrigger activityPauseTrigger
2019-09-22 01:36:40.374 2494-10294/? D/Launcher: get showing item successandroid.graphics.Bitmap@7e7111e
2019-09-22 01:36:40.374 10569-10569/? I/Process: Sending signal. PID: 10569 SIG: 9
2019-09-22 01:36:40.374 1696-3171/? D/ActivityManager: report kill process: killerPid is:10569, killedPid is:10569
2019-09-22 01:36:40.375 1696-8386/? I/Adreno: QUALCOMM build : 33f3a03, I26dffed9a4
Build Date : 04/17/18
OpenGL ES Shader Compiler Version: EV031.22.00.01
Local Branch :
Remote Branch : refs/tags/AU_LINUX_ANDROID_LA.UM.6.5.R1.08.00.00.312.043
Remote Branch : NONE
Reconstruct Branch : NOTHING
2019-09-22 01:36:40.378 1696-8386/? I/vndksupport: sphal namespace is not configured for this process. Loading /vendor/lib64/hw/gralloc.msm8996.so from the current namespace instead.
2019-09-22 01:36:40.381 1696-8386/? I/Adreno: PFP: 0x005ff087, ME: 0x005ff063
2019-09-22 01:36:40.389 1696-3621/? I/ActivityManager: Process com.example.bazel (pid 10569) has died: fore TOP
2019-09-22 01:36:40.389 1696-8386/? I/OpenGLRenderer: Initialized EGL, version 1.4
2019-09-22 01:36:40.389 1696-8386/? D/OpenGLRenderer: Swap behavior 2
2019-09-22 01:36:40.389 4052-4248/? D/PowerKeeper.Event: notifyAMProcDied pacakageName: com.example.bazel, pid:10569
2019-09-22 01:36:40.391 3112-7775/? W/PushService: 2019-09-22 01:36:40,391 - [WARN::PushService] - onProcessDied:pid = 10569,died-uid=10193
2019-09-22 01:36:40.391 1696-10587/? W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1550 android.content.ContextWrapper.bindService:688 miui.os.DropBoxManager.qx:361 miui.os.DropBoxManager.qw:350 miui.os.DropBoxManager.addText:314
2019-09-22 01:36:40.395 1696-3621/? D/ActivityTrigger: activityResumeTrigger: The activity in ApplicationInfo{7baf1bd com.miui.home} is now in focus and seems to be in full-screen mode
2019-09-22 01:36:40.395 1696-3621/? E/ActivityTrigger: activityResumeTrigger: not whiteListedcom.miui.home/com.miui.home.launcher.Launcher/40950911
2019-09-22 01:36:40.404 3235-9283/? D/GameBoosterService: onGameStatusChange foreground:ForegroundInfo{mForegroundPackageName='com.miui.home', mForegroundUid=10029, mForegroundPid=2494, mLastForegroundPackageName='com.example.bazel', mLastForegroundUid=10193, mLastForegroundPid=10569, mMultiWindowForegroundPackageName='null', mMultiWindowForegroundUid=-1, mFlags=0}
2019-09-22 01:36:40.407 1696-3621/? I/Timeline: Timeline: App_transition_ready time:1074301
2019-09-22 01:36:40.411 1696-1780/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.stats.service.DropBoxEntryAddedReceiver
2019-09-22 01:36:40.411 1696-3621/? D/WindowManager: relayoutVisibleWindow: Window{cf8d6ce u0 com.miui.home/com.miui.home.launcher.Launcher EXITING} mAnimatingExit=true, mRemoveOnExit=false, mDestroying=false
2019-09-22 01:36:40.415 1696-3191/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.415 1696-3191/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.415 1696-3191/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.424 1696-3621/? I/Timeline: Timeline: App_transition_ready time:1074317
2019-09-22 01:36:40.432 1696-10587/? D/CompatibilityInfo: mCompatibilityFlags - 10
2019-09-22 01:36:40.432 1696-10587/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.432 1696-10587/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.433 1696-1780/? W/BroadcastQueue: Background execution not allowed: receiving Intent { act=android.intent.action.DROPBOX_ENTRY_ADDED flg=0x11 (has extras) } to com.google.android.gms/.chimera.GmsIntentOperationService$PersistentTrustedReceiver
2019-09-22 01:36:40.435 1696-2483/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.435 1696-2483/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.435 1696-2483/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.436 2303-2303/? D/StatusBar: disable disable2
2019-09-22 01:36:40.437 1696-3171/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:40.437 1696-3171/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:40.437 1696-3171/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:40.448 2494-2595/? D/Launcher: disableStatusBarClock:false
2019-09-22 01:36:40.448 2494-2837/? I/RenderThread: RenderThread resumed
2019-09-22 01:36:40.449 2494-2837/? I/RenderThread: All controllers paused.
2019-09-22 01:36:40.449 2494-2837/? I/RenderThread: RenderThread paused, waiting for signal
2019-09-22 01:36:40.491 3652-3652/? D/MyAccessibility: mForegroundPackageName = com.miui.home ClassName com.miui.home.launcher.Launcher
2019-09-22 01:36:40.491 3652-3652/? D/MyAccessibility: mWorkingPackageName = mWorkingClassName
2019-09-22 01:36:40.549 3652-3652/? D/MyAccessibility: mForegroundPackageName = com.miui.home ClassName com.miui.home.launcher.Launcher
2019-09-22 01:36:40.549 3652-3652/? D/MyAccessibility: mWorkingPackageName = mWorkingClassName
2019-09-22 01:36:40.725 2303-2303/? D/EventBus: [2303, u0] send(AppTransitionFinishedEvent)
2019-09-22 01:36:40.725 2303-2303/? D/EventBus: [2303, u0] -> ForcedResizableInfoActivityController [0x51cb723, P1] onBusEvent(AppTransitionFinishedEvent)
2019-09-22 01:36:40.725 2303-2303/? D/EventBus: [2303, u0] onBusEvent(AppTransitionFinishedEvent) duration: 60 microseconds, avg: 52
2019-09-22 01:36:40.737 1696-1847/? I/Timeline: Timeline: Activity_windows_visible id: ActivityRecord{cb68514 u0 com.miui.home/.launcher.Launcher t1} time:1074631
2019-09-22 01:36:40.738 2303-2303/? D/EventBus: [2303, u0] send(AppTransitionFinishedEvent)
2019-09-22 01:36:40.739 2303-2303/? D/EventBus: [2303, u0] -> ForcedResizableInfoActivityController [0x51cb723, P1] onBusEvent(AppTransitionFinishedEvent)
2019-09-22 01:36:40.739 2303-2303/? D/EventBus: [2303, u0] onBusEvent(AppTransitionFinishedEvent) duration: 62 microseconds, avg: 53
2019-09-22 01:36:40.739 1696-2210/? I/Timeline: Timeline: App_transition_stopped time:1074633
2019-09-22 01:36:40.785 2494-2494/? E/Launcher: changeViewByFsGestureState, view=FitSystemWindowView, alpha=1.0, scale=1.0
2019-09-22 01:36:40.785 2494-2494/? E/Launcher: changeViewByFsGestureState, view=ForceTouchLayer, alpha=1.0, scale=1.0
2019-09-22 01:36:43.083 589-645/? E/ANDR-PERF-OPTSHANDLER: perf_lock_rel: updated /sys/class/scsi_host/host0/../../../clkscale_enable with 1
return value 2
2019-09-22 01:36:44.247 1696-3614/? W/ActivityManager: Unable to start service Intent { pkg=com.miui.hybrid cmp=com.miui.hybrid/.PersistService } U=0: not found
2019-09-22 01:36:50.818 1696-3614/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:50.818 1696-3614/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:50.818 1696-3614/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:50.889 1696-3614/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:50.889 1696-3614/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:50.889 1696-3614/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:50.936 1696-2483/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:50.937 1696-2483/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:50.937 1696-2483/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:36:50.990 1696-3614/? D/CompatibilityInfo: mCompatibilityFlags - 0
2019-09-22 01:36:50.990 1696-3614/? D/CompatibilityInfo: applicationDensity - 480
2019-09-22 01:36:50.990 1696-3614/? D/CompatibilityInfo: applicationScale - 1.0
2019-09-22 01:37:00.012 2303-2303/? D/KeyguardUpdateMonitor: handleTimeUpdate

it's start application Logcat.
this helpful?

Thank you

@chiaruy
Copy link
Author

chiaruy commented Sep 21, 2019

I found a question is I can install by /examples-master/android/tutorial/bazel-bin/src/main/app.apk by bazel build //src/main:app builded file, and it work well, but i using the bazel mobile-install to install application would crash immediately.

@aaaron7
Copy link

aaaron7 commented Jan 10, 2020

same problem. @chiaruy have you find the solution?

@chiaruy
Copy link
Author

chiaruy commented Jan 12, 2020

same problem. @chiaruy have you find the solution?

I guess is Mobile phone problem, I use XI Mi occur this problem, but i use Samsung it can work well.

@dheeraj-2000
Copy link

I have also faced the same problem, but when I installed that apk by copying that apk file to my phone (didn't installed through adb), and it worked perfectly fine.
So, try out this way, if you're facing app crash issue.

@yicm
Copy link

yicm commented Sep 29, 2020

@jin @dheeraj-2000 I have also faced the same problem..., What is the progress of this problem?

@dheeraj-2000
Copy link

@yicm I wasn't able to resolve that issue, just tried the way I mentioned above. The app worked perfectly fine, So I didn't digged into it :)

@00SunnyDay00
Copy link

any update? same problem

@PikachuHy
Copy link

use adb install path/to/apk and re-run your app maybe OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants