used to work fine but after migrating I get this error:
Kotlin target 'android' tried to set up publishing for Android build variants that are not library variants or do not exist:
* release
* debug
Check the 'publishLibraryVariants' property, it should point to existing Android library variants. Publishing of application and test variants is not supported.
Replacing above with
publishAllLibraryVariants()
does build, but it publishes no android artifacts.
Anyone else seen this?
a
Artem Kopan
08/20/2020, 6:25 AM
I got the same error, make sure, that you apply android plugin before kotlin multiplatform
🙏 3
h
hultgren
08/20/2020, 4:32 PM
that did the trick. thank you @Artem Kopan
m
Marc Dietrichstein
09/25/2020, 9:36 AM
Thanks @Artem Kopan!
This issue has been been bugging me for a full day. Do you have an idea why the order of the plugins is important now?