Hi all, I am stuck with this issue , I have added moko resources dependency but whenever I tried to access that resource I get an error , please help thanks in advance the error is,
Supertypes of the following classes cannot be resolved . Please make sure you have the required dependency in the class path:
Class com.example.pnbmetlifekmm.MR.assets, unresolved supertypes: dev.icerock.moko.resources.ResourceContainer
Adding -Xextended-compiler-checks argument might provide additional information
a
alex009
05/12/2023, 7:36 AM
how you add dependency in gradle?
r
Rizwan
05/12/2023, 8:24 AM
In shared build.gradle.kts I have added plugin at top
Like this
Id(dev.icerock..)
And in comman main in dependency section
Implementation ("dev.icerock.moko: resources:0.22.0
a
alex009
05/12/2023, 8:45 AM
change
implementation
to
api
r
Rizwan
05/12/2023, 9:19 AM
Thanks it worked
🤗
I have another query I am trying to load my html file in webview how can I do that
When I load like this MR.assets.login.originalpath webview can't find the page
@alex009 is this possible?
a
alex009
05/16/2023, 8:06 AM
i dont try this. i think you should read files from assets and write to temporary directory in filesystem (for example with okio) and after it use file path.