wequick / Small

A small framework to split app into small parts
http://code.wequick.net/Small
Apache License 2.0
5.05k stars 1.11k forks source link

APP运行时发生NameNotFoundException #605

Open liulianshanzhu opened 5 years ago

liulianshanzhu commented 5 years ago

错误报告

你做了什么?

构建一个APP,创建了app.main和lib.net,然后cleanLib、buildLib、buildBundle,提示successful,然后点击run,运行APP。(已确认宿主app的bundle.json无误)

你期望的结果是什么?

APP正常运行

实际结果是什么?

APP运行报错,没有进入闪屏页。报错日志如下: 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: android.content.pm.PackageManager$NameNotFoundException: xxxbeyond.all.app.main 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.app.ApplicationPackageManager.getApplicationInfoAsUser(ApplicationPackageManager.java:392) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.app.ApplicationPackageManager.getApplicationInfo(ApplicationPackageManager.java:372) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at com.tendcloud.tenddata.zz.a(td:204) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at com.tendcloud.tenddata.ac.a(td:50) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at com.tendcloud.tenddata.TCAgent.init(td:49) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at xxxbeyond.all.app.main.base.MyApplication.onCreate(MyApplication.java:35) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1122) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at net.wequick.small.ApkBundleLauncher$2.run(ApkBundleLauncher.java:875) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at net.wequick.small.Bundle$1.run(Bundle.java:833) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.os.Handler.handleCallback(Handler.java:808) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.os.Handler.dispatchMessage(Handler.java:101) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.os.Looper.loop(Looper.java:166) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at android.app.ActivityThread.main(ActivityThread.java:7529) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at java.lang.reflect.Method.invoke(Native Method) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:245) 04-07 10:53:11.375 19728-19728/xxxbeyond.all W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:921) 04-07 10:53:11.377 19728-19728/xxxbeyond.all I/TDLog: setReportUncaughtExceptions: true

04-07 10:53:11.946 19728-19728/xxxbeyond.all E/HealthManager: xxxbeyond.all.app.main.ui.activity.SplashActivity throws android.content.res.Resources$NotFoundException exception. 04-07 10:53:11.949 19728-19728/xxxbeyond.all E/HealthManager: The activity assets are different from application. Application assets:

Small环境

Compile-time

  gradle-small plugin : 1.5.0-beta2 (maven)
            small aar : 1.5.0-beta2 (maven)
          gradle core : 3.3
       android plugin : 2.3.3
                   OS : Windows 10 10.0 (amd64)

Bundles

type name PP sdk aapt support file(armeabi) size
host app 26 26.0.0 26.0.0
app app.main 0x12 26 26.0.2 26.0.0 *_main.so 2.2 MB
lib lib.net 0x3d 26 26.0.0 *_net.so 853.3 KB

Runtime

  Device : HuaWei STF-AL00
     SDK : Android 8.0.0
     ABI : armeabi