Yesterday they announced that "compose multiplatform" reach alpha stage.
I retry for the second time to creat a project that work on "Android, desktop and Web" after updating plugin to alpha in IntilijIdea
But unfortunately I had problem in both Android and Desktop parts (just the web that worked correctly).
...
The problem with the Desktop is "MainKT is not found"
And the problem with Android is that Compose libraries are not known.
...
So my question is there any one who can teach me how to start a project that work on the 3 platform ?!
Because It's obvious that the project that initialise in the default is not working or it missing something that I'm not able to figure out !!!
Any help please
g
gildor
08/05/2021, 3:02 PM
MainKT looks wrong, should it be MainKt?
gildor
08/05/2021, 3:02 PM
If you would share project it would be easier to help you
c
Colton Idle
08/05/2021, 3:23 PM
I think I had this problem once (wayyy long ago) but it was because I was using jdk8 instead of 11 (or I think 14 is now needed for desktop).
a
Akram Bensalem
08/05/2021, 3:33 PM
@Colton Idle
For Desktop I got this error
Akram Bensalem
08/05/2021, 3:41 PM
for Android
Compose libreries are not define
g
gildor
08/06/2021, 1:40 AM
do you have androidx.activity:activity-compose in dependencies for Android module?
gildor
08/06/2021, 1:52 AM
It’s correct you need JDK 14, but only for
package
task. This issue doesn’t look related.
Hard to say why MainKt is not found without checking the project