华为广告打包报错,问题思考

news2024/12/23 1:48:07

华为广告打包时报错

fata日志不一样能反映出完整的错误日志信息,仅看fata日志具有误导性,有可能指向错误的方向。
通过看完整的日志可见,错误的原因为

Caused by: java.lang.ClassNotFoundException: com.huawei.hms.ads.base.R$dimen

fata日志

2024-03-25 20:24:27.674  3737-3737  AndroidRuntime          usap64                               E  FATAL EXCEPTION: main
                                                                                                    Process: cn.jj.chess.huawei, PID: 3737
                                                                                                    java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.jj.chess.huawei/cn.jj.channel.ad.activity.HuaWeiSplashActivity}: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4018)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    Caused by: java.lang.reflect.InvocationTargetException
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1107)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:703)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:494)
                                                                                                    	at android.app.Activity.setContentView(Activity.java:3743)
                                                                                                    	at cn.jj.channel.ad.activity.HuaWeiSplashActivity.onCreate(HuaWeiSplashActivity.java:11)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8757)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8729)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)

完整日志

一定要看完整的日志。

2024-03-25 20:16:31.488  2281-2281  AndroidRuntime          usap64                               D  Shutting down VM
2024-03-25 20:16:31.488  2281-2281  AndroidRuntime          usap64                               E  FATAL EXCEPTION: main
                                                                                                    Process: cn.jj.chess.huawei, PID: 2281
                                                                                                    java.lang.RuntimeException: Unable to start activity ComponentInfo{cn.jj.chess.huawei/cn.jj.channel.ad.activity.HuaWeiSplashActivity}: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4018)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #63 in cn.jj.chess.huawei:layout/tk_huawei_ad_splash_view: Error inflating class com.huawei.hms.ads.splash.SplashView
                                                                                                    Caused by: java.lang.reflect.InvocationTargetException
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1107)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:703)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:494)
                                                                                                    	at android.app.Activity.setContentView(Activity.java:3743)
                                                                                                    	at cn.jj.channel.ad.activity.HuaWeiSplashActivity.onCreate(HuaWeiSplashActivity.java:11)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8757)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8729)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
2024-03-25 20:16:31.489  2281-2281  AndroidRuntime          usap64                               E  Caused by: android.view.InflateException: Binary XML file line #13 in cn.jj.chess.huawei:layout/hiad_view_splash_ad: Binary XML file line #13 in cn.jj.chess.huawei:layout/hiad_view_splash_ad: Error inflating class com.huawei.openalliance.ad.views.PPSWLSView
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #13 in cn.jj.chess.huawei:layout/hiad_view_splash_ad: Error inflating class com.huawei.openalliance.ad.views.PPSWLSView
                                                                                                    Caused by: java.lang.reflect.InvocationTargetException
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:673)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at android.view.View.inflate(View.java:28939)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.V(Unknown Source:2)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.Code(Unknown Source:0)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.<init>(Unknown Source:52)
                                                                                                    	at com.huawei.hms.ads.splash.SplashView.<init>(Unknown Source:0)
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1107)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:703)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:494)
                                                                                                    	at android.app.Activity.setContentView(Activity.java:3743)
                                                                                                    	at cn.jj.channel.ad.activity.HuaWeiSplashActivity.onCreate(HuaWeiSplashActivity.java:11)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8757)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8729)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #10 in cn.jj.chess.huawei:layout/hiad_wls_view: Binary XML file line #10 in cn.jj.chess.huawei:layout/hiad_wls_view: Error inflating class com.huawei.hms.ads.splash.ChoicesView
                                                                                                    Caused by: android.view.InflateException: Binary XML file line #10 in cn.jj.chess.huawei:layout/hiad_wls_view: Error inflating class com.huawei.hms.ads.splash.ChoicesView
                                                                                                    Caused by: java.lang.reflect.InvocationTargetException
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
2024-03-25 20:16:31.489  2281-2281  AndroidRuntime          usap64                               E  	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:673)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at android.view.View.inflate(View.java:28939)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSWLSView.Code(Unknown Source:2)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSWLSView.<init>(Unknown Source:3)
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:673)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at android.view.View.inflate(View.java:28939)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.V(Unknown Source:2)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.Code(Unknown Source:0)
                                                                                                    	at com.huawei.openalliance.ad.views.PPSSplashView.<init>(Unknown Source:52)
                                                                                                    	at com.huawei.hms.ads.splash.SplashView.<init>(Unknown Source:0)
                                                                                                    	at java.lang.reflect.Constructor.newInstance0(Native Method)
                                                                                                    	at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
                                                                                                    	at android.view.LayoutInflater.createView(LayoutInflater.java:877)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:1029)
                                                                                                    	at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:984)
                                                                                                    	at android.view.LayoutInflater.rInflate(LayoutInflater.java:1146)
                                                                                                    	at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1107)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:703)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:544)
                                                                                                    	at android.view.LayoutInflater.inflate(LayoutInflater.java:491)
                                                                                                    	at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:494)
                                                                                                    	at android.app.Activity.setContentView(Activity.java:3743)
                                                                                                    	at cn.jj.channel.ad.activity.HuaWeiSplashActivity.onCreate(HuaWeiSplashActivity.java:11)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8757)
                                                                                                    	at android.app.Activity.performCreate(Activity.java:8729)
                                                                                                    	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1475)
                                                                                                    	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3992)
                                                                                                    	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4168)
                                                                                                    	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:114)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:144)
                                                                                                    	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:101)
                                                                                                    	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2630)
                                                                                                    	at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                    	at android.os.Looper.loopOnce(Looper.java:257)
                                                                                                    	at android.os.Looper.loop(Looper.java:368)
                                                                                                    	at android.app.ActivityThread.main(ActivityThread.java:8826)
                                                                                                    	at java.lang.reflect.Method.invoke(Native Method)
                                                                                                    	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:572)
                                                                                                    	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1049)
                                                                                                    Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/huawei/hms/ads/base/R$dimen;
                                                                                                    	at com.huawei.hms.ads.splash.ChoicesView.Code(Unknown Source:8)
                                                                                                    	at com.huawei.hms.ads.splash.ChoicesView.<init>(Unknown Source:3)
                                                                                                    	... 55 more
2024-03-25 20:16:31.489  2281-2281  AndroidRuntime          usap64                               E  Caused by: java.lang.ClassNotFoundException: com.huawei.hms.ads.base.R$dimen
                                                                                                    	... 57 more

收不到回调问题研究

添加华为闪屏页后,我们在java包中创建了一个activity,创建的此activity中的内容,没有进行防混淆。

导致华为this.splashView.load时传入的第var5参数异常。与逆向导入资源的名称不一致。程序虽然没有报错,但是一直收不到相关回调。

SplashView.SplashAdLoadListener var5;
        var5 = new SplashView.SplashAdLoadListener() {
            public void onAdLoaded() {
                String[] var1;
                (var1 = new String[1])[0] = "onAdLoaded";
                LogUtils.logI("TK_HuaWeiSplashActivity", var1);
            }

            public void onAdFailedToLoad(int var1) {
                String[] var2;
                (var2 = new String[1])[0] = "onAdFailedToLoad";
                LogUtils.logI("TK_HuaWeiSplashActivity", var2);
            }

            public void onAdDismissed() {
                String[] var1;
                (var1 = new String[1])[0] = "onAdDismissed";
                LogUtils.logI("TK_HuaWeiSplashActivity", var1);
            }
        }.<init>();
        String[] var3;
        (var3 = new String[1])[0] = "splashAdLoadListener:" + <undefinedtype>.class;
        LogUtils.logI("TK_HuaWeiSplashActivity", var3);
        this.splashView.load(splash_ad_id, this.splash_game_orientation, var1, var5);

在这里插入图片描述

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1553706.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

Java基础概念(二)

idea 工欲善其事&#xff0c;必先利其器&#xff0c;所以在真正编写代码之前先下载idea工具&#xff0c;idea是用于java语言开发的集成环境&#xff0c;是业界目前公认的用于Java开发最好的工具&#xff0c;把代码编写、编译、运行、调试等功能综合到一起的开发工具 下载地址…

解决npm init vue@latest证书过期问题:npm ERR! code CERT_HAS_EXPIRED

目录 一. 问题背景 二. 错误信息 三. 解决方案 3.1 临时解决办法 3.2 安全性考量 一. 问题背景 我在试图创建一个新的Vue.js项目时遇到了一个问题&#xff1a;npm init vuelatest命令出现了证书过期的错误。不过这是一个常见的问题&#xff0c;解决起来也简单。 二. 错误…

uni-app项目打包步骤和踩过的坑(一)

最近接了一个前同事留下的uni-app的项目&#xff0c;之前没有接触过&#xff0c;好在以前的工作中用到过vue做过前台开发&#xff0c;虽然时间不长&#xff0c;但是有些方面还是可以借鉴的。经过前几篇文章的介绍&#xff0c;我已经补完了后台服务代码&#xff0c;打算发布到设…

QT布局管理和空间提升为和空间间隔

QHBoxLayout&#xff1a;按照水平方向从左到右布局&#xff1b; QVBoxLayout&#xff1a;按照竖直方向从上到下布局&#xff1b; QGridLayout&#xff1a;在一个网格中进行布局&#xff0c;类似于HTML的table&#xff1b; 基本布局管理类包括&#xff1a;QBoxLayout、QGridL…

AI人像写真解决方案,满足企业多样化视觉需求

美摄科技&#xff0c;作为一家专注于人工智能技术研发与应用的高新企业&#xff0c;深知企业对于高质量、高效率视觉内容的需求&#xff0c;特推出AI人像写真解决方案&#xff0c;为企业打开全新的视觉营销通道。 我们的AI人像写真解决方案&#xff0c;基于深度学习和计算机视…

3D分割项目 | 基于Pytorch+3DUnet实现的3D体积语义分割算法

项目应用场景 用于 3D 体积语义分割场景&#xff0c;适用于各种物体的 3D 语义分割&#xff0c;比如大米、大豆的体积分割等 项目效果&#xff1a; 项目流程 > 具体参见项目内README.md (1) 安装 conda install -c conda-forge mamba mamba create -n pytorch-3dunet -c p…

第十四届蓝桥杯JavaA组省赛真题 - 互质数的个数

解题思路&#xff1a; 快速幂 欧拉函数 快速幂比较常见于数据较大的取模场景&#xff0c;欧拉函数感觉还是有点抽象 注意&#xff1a; 取模的时候就不要简写了&#xff0c;例如&#xff1a;res res * a % mod;不要写成res * a % mod; import java.util.Scanner;public c…

cesium vue 绘制标记实体(撒点),监听鼠标左击事件

添加实体 const viewer new Cesium.Viewer(cesiumContainer, {})viewer.entities.add()查看实体 const viewer new Cesium.Viewer(cesiumContainer, {}) const billboard viewer.entities.add({...})viewer.zoomTo(billboard)删除实体 根据实体删除 if (billboard.value…

ElementUI 周组件展示成月的第几周

ElementUI 周组件展示成月的第几周 组件展示 <el-date-picker unlink-panels :clearable"false" change"weekChange":editable"false" :type"dateType":value-format"valueFormat" :format"format"v-if&qu…

怎样一次性给多篇word文档标注拼音?一键批量注音

随着办公自动化的普及&#xff0c;我们经常会遇到需要处理大量Word文档的情况。在这些文档中&#xff0c;有时需要将文字标注上拼音&#xff0c;特别是在处理一些包含生僻字或需要拼音辅助阅读的文档时。然而&#xff0c;手动一篇篇地给Word文档标注拼音不仅效率低下&#xff0…

深度剖析MySQL锁:解开数据库并发控制的神秘面纱

MySQL 锁是 MySQL 数据库管理系统中为了实现并发控制和数据一致性的机制。在多用户并发访问数据库时&#xff0c;锁可以确保多个事务在对同一数据进行操作时不会相互干扰&#xff0c;以防止数据不一致的现象发生。 一、锁分类 MySQL支持多种类型的锁&#xff0c;主要包括…

DataX-Oracle新增writeMode支持update

目录 前言 第一步下载源码 第二步修改源码 1、Oraclewriter 2、WriterUtil 2.1、修改getWriteTemplate方法 2.2、新增onMergeIntoDoString与getStrings方法 3、CommonRdbmsWriter 3.1、修改startWriteWithConnection 3.2、修改doBatchInsert 3.3、修改fillPreparedStatem…

苹果应用商店上架利器:推荐几款常用的应用发布工具

摘要 移动应用app上架是开发者关注的重要环节&#xff0c;但常常会面临审核不通过等问题。为帮助开发者顺利完成上架工作&#xff0c;各种辅助工具应运而生。本文探讨移动应用app上架原理、常见辅助工具功能及其作用&#xff0c;最终指出合理使用工具的重要性。 引言 移动应…

洛谷_P1803 凌乱的yyy / 线段覆盖_python写法

P1803 凌乱的yyy / 线段覆盖 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 这道题是不是用python做只能做到70分啊&#xff1f;&#xff1f; n int(input()) data [] for i in range(n):data.append(list(map(int,input().split())))data.sort(keylambda x:x[1])ans 1 mi…

Solidity Uniswap V2 Router swapTokensForExactTokens

最初的router合约实现了许多不同的交换方式。我们不会实现所有的方式&#xff0c;但我想向大家展示如何实现倒置交换&#xff1a;用未知量的输入Token交换精确量的输出代币。这是一个有趣的用例&#xff0c;可能并不常用&#xff0c;但仍有可能实现。 GitHub - XuHugo/solidit…

景联文科技高质量大模型训练数据汇总!

3月25日&#xff0c;2024年中国发展高层论坛年会上&#xff0c;国家数据局局长刘烈宏在“释放数据要素价值&#xff0c;助力可持续发展”的演讲中表示&#xff0c;中国10亿参数规模以上的大模型数量已超100个。 当前&#xff0c;国内AI大模型发展仍面临诸多困境。其中&#xff…

批量剪辑视频,批量调整片头片尾时长,批量剪辑更高效!

在视频剪辑的世界里&#xff0c;有时候我们需要对视频的片头片尾进行精细调整&#xff0c;以适应不同的需求和创意。然而&#xff0c;传统的视频剪辑软件往往操作繁琐&#xff0c;效率低下&#xff0c;让人望而却步。今天&#xff0c;我要为您介绍一种全新的批量剪辑方式&#…

一个传入省市区ID的级联框

省市区ID 功能edit页面(主要)script逻辑如何拿到当前级联下所有ID数组长ID数组是如何回显的 (1)长ID数组是如何回显的 (2) 功能 选择第一层传第一层下的所有 id 数组&#xff0c;选择第二层传递第二层以及第二层下的所有 id 数组 edit页面(主要) 编辑页的一个 Table&#xff0c…

Dynamo设置按链接视图显示

Hello大家好&#xff01;我是九哥~ 先来看一段视频&#xff1a; Dynamo设置链接视图 相信用Revit的小伙伴都用到过这个功能&#xff0c;就是在链接Revit模型时&#xff0c;为了便于出图&#xff0c;我们经常需要将链接模型从“按主体视图”改为“按链接视图”&#xff0c;这样能…

buy me a btc 使用数字货币进行打赏赞助

最近在调研使用加密货币打赏的平台&#xff0c;发现idatariver平台 https://idatariver.com 推出的buymeabtc功能刚好符合使用场景&#xff0c;下图为平台的演示项目, 演示项目入口 https://buymeabtc.com/idatariver 特点 不少人都听说过buymeacoffee&#xff0c;可以在上面发…