didi/VirtualAPK

插件导入第三方aar,闪退

jwh18960733474 opened this issue · 0 comments

插件导入其他的sdk,其中只有一个aar的资源老是找不到

Process: com.nidong.cmswat.huawei, PID: 9124
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.nidong.cmswat.huawei/com.didi.virtualapk.core.A$2}: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3507)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3661)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2232)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:238)
at android.app.ActivityThread.main(ActivityThread.java:7827)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x0
at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:254)
at android.content.res.Resources.loadXmlResourceParser(Resources.java:2296)
at android.content.res.Resources.getLayout(Resources.java:1183)
at android.view.LayoutInflater.inflate(LayoutInflater.java:532)
at android.view.LayoutInflater.inflate(LayoutInflater.java:481)
at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:446)
at android.app.Activity.setContentView(Activity.java:3403)
at com.bytedance.sdk.openadsdk.activity.base.TTBaseVideoActivity.e(TTBaseVideoActivity.java:380)
at com.bytedance.sdk.openadsdk.activity.base.TTBaseVideoActivity.onCreate(TTBaseVideoActivity.java:250)
at android.app.Activity.performCreate(Activity.java:7986)
at android.app.Activity.performCreate(Activity.java:7975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
at com.didi.virtualapk.internal.VAInstrumentation.callActivityOnCreate(VAInstrumentation.java:156)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3482)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3661) 
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83) 
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:140) 
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:100) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2232) 
at android.os.Handler.dispatchMessage(Handler.java:107) 
at android.os.Looper.loop(Looper.java:238) 
at android.app.ActivityThread.main(ActivityThread.java:7827) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)