我正在尝试遵循以下教程:https ://github.com/JetBrains/kotlin-native/blob/master/MULTIPLATFORM.md
但是当我尝试从 android studio 构建 android 应用程序时,出现以下错误:
FAILURE:构建失败并出现异常。
- 其中:构建文件'/Users/nishita.dutta/AndroidStudioProjects/KotlinMultiplatform/application/greeting/ios/build.gradle'行:1
- 出了什么问题:评估项目 ':application:greeting:ios' 时出现问题。org/gradle/api/internal/FeaturePreviews
这是我的 ios/build.gradle 文件
apply plugin: 'konan'
// Specify targets to build the framework: iOS and iOS simulator
konan.targets = ['ios_arm64', 'ios_x64']
konanArtifacts {
// Declare building into a framework.
framework('Greeting') {
// The multiplatform support is disabled by default.
enableMultiplatform true
}
}
dependencies {
// Specify dependency on a common project for Kotlin multiplatform build
expectedBy project(':greeting:common')
}