-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
getApplicationInfo有两处实现,且实现不一致。 #40
Comments
请问一下最后是如何解决的呢? 按照教,初始化的时候一直输出这个错问日志: ARouter::: InstantRun support error, com.android.tools.fd.runtime.Paths |
InstantRun和这个Issue应该不相关。你可以先关掉InstantRun试试。有问题的话附上修改的sample另外提issue吧。 |
打断点看初始化的错误是在这里输出的catch (Exception e)中输出了 ARouter::: InstantRun support error, com.android.tools.fd.runtime.Paths:
|
com.tencent.shadow.core.runtime.ShadowContext#getApplicationInfo
com.tencent.shadow.core.runtime.ShadowPackageManager#getApplicationInfo
两处实现的逻辑不一致,且不应该实现两遍。
其中
com.tencent.shadow.core.runtime.ShadowPackageManager#getApplicationInfo
返回的ApplicationInfo没有设置sourceDir,导致了问题#38其中
ShadowPackageManager
是插件中代码通过PackageManager试图getApplicationInfo
,并且传入的packageName
等于插件(也等于宿主)的。我们认为这种调用实际上是试图拿到插件自己的ApplicationInfo。因此转调过来了。The text was updated successfully, but these errors were encountered: