You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use the library in Android projects, 'android()' platform support must be enabled. To do so, it need to apply Android Gradle Plugin for the configuration phase, apply android library plugin com.android.library for each multiplatofrm module, setup android configuration with fresh verisons of the android SDK (compileSdk = 33, targetSdk = 33, minSdk = 21 or older), create androidMain sourcesets and place manifest androidMain/AndroidManifest.xml to each sourceset with different packages.
And as I beleive, there are some problems with the current project configuration for multiplatform. jvmMain and androidMain - is different sourcests for KMM (because some differents with API in Java, as I understand). So, it will need to either copypaste the code of actual implementations, or rework structure of sourcesets.
And it is impossible to enable two plugins at the same time in the same module - com.android.library and java. At now java plugin applied in ton-kotlin-fift module.
To use the library in Android projects, 'android()' platform support must be enabled. To do so, it need to apply Android Gradle Plugin for the configuration phase, apply android library plugin
com.android.library
for each multiplatofrm module, setupandroid
configuration with fresh verisons of the android SDK (compileSdk = 33, targetSdk = 33, minSdk = 21 or older), createandroidMain
sourcesets and place manifestandroidMain/AndroidManifest.xml
to each sourceset with different packages.And as I beleive, there are some problems with the current project configuration for multiplatform.
jvmMain
andandroidMain
- is different sourcests for KMM (because some differents with API in Java, as I understand). So, it will need to either copypaste the code of actual implementations, or rework structure of sourcesets.And it is impossible to enable two plugins at the same time in the same module -
com.android.library
andjava
. At nowjava
plugin applied inton-kotlin-fift
module.Some links on the topic:
The text was updated successfully, but these errors were encountered: