Skip to content
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

ContentProvider in dynamic module #128

Open
pendai opened this issue May 20, 2023 · 1 comment
Open

ContentProvider in dynamic module #128

pendai opened this issue May 20, 2023 · 1 comment

Comments

@pendai
Copy link

pendai commented May 20, 2023

I have declared ContentProvider in my dynamic module's manifest 。 this would result in ClassNotFoundException.(bad english)
<dist:module
dist:instant="false"
dist:title="@string/title">
dist:delivery
<dist:install-time >
dist:conditions
<dist:user-countries dist:exclude="false">
<dist:country dist:code="JP"/>
</dist:user-countries>
</dist:conditions>
</dist:install-time>
</dist:delivery>
<dist:fusing dist:include="false" />
</dist:module>


trace:
    java.lang.RuntimeException: Unable to get provider com.exp.initializer.MobileInitializeProvider: java.lang.ClassNotFoundException: Didn't find class "com.exp.initializer.MobileInitializeProvider" on path: DexPathList[[zip file "/data/app/com.block.puzzle.game.wooden-s38mQmfCLB4I1rmGAkXfDg==/base.apk", zip file "/data/app/com.block.puzzle.game.wooden-s38mQmfCLB4I1rmGAkXfDg==/split_config.arm64_v8a.apk"],nativeLibraryDirectories=[/data/app/com.block.puzzle.game.wooden-s38mQmfCLB4I1rmGAkXfDg==/lib/arm64, /data/app/com.block.puzzle.game.wooden-s38mQmfCLB4I1rmGAkXfDg==/base.apk!/lib/arm64-v8a, /data/app/com.block.puzzle.game.wooden-s38mQmfCLB4I1rmGAkXfDg==/split_config.arm64_v8a.apk!/lib/arm64-v8a, /system/lib64, /product/lib64]]
    at android.app.ActivityThread.installProvider(ActivityThread.java:7191)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6669)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6586)
    at android.app.ActivityThread.access$1500(ActivityThread.java:233)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1914)
    at android.os.Handler.dispatchMessage(Handler.java:107)
    at android.os.Looper.loop(Looper.java:224)
    at android.app.ActivityThread.main(ActivityThread.java:7561)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)
@pendai
Copy link
Author

pendai commented May 20, 2023

image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant