-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Multi Module app is Failed to Run when Generated as .aar used in other Native project #4492
Comments
Not just KMP but also traditional Android, an .aar doesn't include the dependent submodules in the .aar |
Ho okay, Thanks for the information @pablichjenkov |
@pablichjenkov I tried MavenLocal but still same issue, do I need to host them on sonartype? |
Can you post your library pom.xml generated when you did the publication. |
@sureshmaidaragi1919 Hi, I think you can use |
|
Yes I did here is the snippet @devanshu6445 for one of the module build.gradle.kts
.pom file attached for ref |
Also what is the plugin on Android Studio? |
@sureshmaidaragi1919 As I can see from your build configuration, you are not configuring each publication target of maven publications. If you do that I think it will work. |
can you help me to share any ref or doc todo that, I am not able to get exactly what I have missed |
I can see the external library post running the current build |
I see the ui module pom file reference core and player dependencies. The player pom seems ok, and I guess core is ok too. |
@sureshmaidaragi1919 what @pablichjenkov is saying is correct but can you confirm whether this exception is only coming for the UtilsKt class or for any other classes as well. And are you using R8 for debug build as well? |
@devanshu6445 Issue is coming from other modules too, |
Describe the bug
I have created the KMM multi module project as shown below
-- KmmUI
-- KmmNetwork
-- KmmCore
-- kmmpwpitara (Shared)
When I generate
.aar
file by cmd./gradlew pitaraShared:assemble
, And use the generated .aar in Native Android app it showing file to find Module UI's imported fileAffected platforms
Versions
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
.aar
for Android and.framework
by cmd./gradlew pitaraShared:assemble
Expected behavior
It should work in Multi module as well;
Screenshots
in below screen shot,
kmmpwui/ui/widget/UtilsKt;
is from kmmui modules file called in kmm's sharedkmmpwpitara
module and used in Native app project as attached screen. and gives the errorAdditional context
If KMM projects still fully didn't support Multi modular architecture let us know in prior
The text was updated successfully, but these errors were encountered: