Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix 'The feature "multi platform projects" is experimental and should be enabled explicitly' warning in IntelliJ IDEA

Whenever I write an expect function in IntelliJ IDEA, I get the following warning:
The feature "multi platform projects" is experimental and should be enabled explicitly

Where can enable this feature? I already searched the settings and didn't find a way to disable that warning.

Compilation with gradle works fine.

like image 897
binarynoise Avatar asked Jan 30 '26 03:01

binarynoise


1 Answers

A work around that could work for you is here:

  • https://youtrack.jetbrains.com/issue/KTIJ-18408#focus=Comments-27-5220925.0-0

You can find the full discussion here:

  • https://youtrack.jetbrains.com/issue/KTIJ-18408

In short, the issue is related to the ability of kotlin multiplatform to use native libraries in the hierarchical structure:

  • https://kotlinlang.org/docs/mpp-share-on-platforms.html#use-native-libraries-in-the-hierarchical-structure

There are some conflicts between native libraries and the common code features such as expect keyword.

like image 190
JesusDMedinaC Avatar answered Feb 03 '26 05:02

JesusDMedinaC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!