Can’t build a fresh KMM <template>. `kdoctor` says...
# compose
s
Can’t build a fresh KMM template.
kdoctor
says I am ok, but when Android Studio syncs the project, it tells me I don’t have cocoapods installed. I have cocoapods 1.12. M1 Air. Running
pod install
from terminal works fine.
p
Try the GitHub project itself, you might get some responses there. Make sure all the versions are aligned. I mean compatible. Check the Multiplatform Plugin is installed in your AS, check your AS version plays well with the template gradle wrapper and agp versions, things like that
s
The github is a template, so it doesn’t have issues (or they turned them off).
p
Lol, but perhaps your Android Studio doesn't have the latest Kotlin multiplatform plugin installed or a non compatible version. Same goes to your Android Studio version and gradle in the template. That explains why may work from the command line but not from AS
I use Flamingo, for reference, and it is working fine. I just used the same template last week. No issue. Always do a full clean up, including the deletion of .idea folder and . gradle folder
s
I updated everything before I installed the plugin, dependencies, template
p
Ah I see, Humm . What happens if you open the iOS module with xCode? It works fine?
By the way you can also ask in #compose-ios and #multiplatform