赞
踩
java.io.IOException: Failed to load asset path /data/app/~~6NaPY0QUExq5mh7G5G7sGQ==/com.rockchip.gpadc.yolodemo-8QWjqAhVBt2RGI7HvuiK5w==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:295)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:144)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:468)
at android.app.ResourcesManager.access$000(ResourcesManager.java:85)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:182)
at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:544)
at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:626)
at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:719)
at android.app.ResourcesManager.createResources(ResourcesManager.java:1066)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1169)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2415)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1781)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1767)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1536)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3059)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:290)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:286)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:198)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:90)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:77)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:78)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:113)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda0.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:140)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1451)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7870)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
仔细发现是
com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:78)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:113)
原因:
- Button stopButton = findViewById(R.id.stopButton);
- stopButton.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Toast.makeText(MainActivity.this, "按钮被点击了", Toast.LENGTH_SHORT).show();
- int run_mode=1;//1检查rtsp和模型 2 运行,3 停止
- try {
- mInferenceWrapper.set_Run_Model(run_mode);
- } catch (Exception e) {
- throw new RuntimeException(e);
- }
- }
- });
按钮点击事件把toase注释掉就可以了。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。