Hi, I created a new project and started with the K...
# kotlin-native
b
Hi, I created a new project and started with the Kotlin Mobile Android/iOS | Gradle example. But some things are red in the build.gradle and I can not build it because of
Could not get unknown property 'ios' for KotlinTarget container of type org.gradle.api.internal.FactoryNamedDomainObjectContainer.
My Kotlin Plugin Version is v1.3.40-release-IJ2019.1-1
g
is it Kotlin DSL?
b
No, I don't think so
a
Hello! Are you sure that nothing else were changed in the example? I suppose that your
build.gradle
is still trying to work with target
ios
, like it is named in the default file. If you changed the target name, it has to be done everywhere.
o
which host it happens on?
b
I deleted everything and started from scratch again and now it seems to work. It's still red an gradle complains the sync failed but I can build it. I think I updated the com.android.tools.build:gradle to the current version in my last try 😕 But I needed to change the targetDir call in copyFramework to: def targetDir = new File(buildDir, "xcode-frameworks")
gradle complains the sync failed but I can build it.
this was due to an experimental setting
a
I changed the line as you said, and everything works - the framework comes to the directory
app/build/xcode-frameworks
. What is your current status?
b
Seems to work now but still red in the build.gradle file. I will ignore it 😉