VictorKabata / Notflix

Kotlin Multiplatform playground
589 stars 82 forks source link

Building project #84

Closed shershen0 closed 1 year ago

shershen0 commented 1 year ago

Faced with this issue when was building project in Android Studio, any ideas why this might have happened?

FAILURE: Build failed with an exception.

* What went wrong:
A problem was found with the configuration of task ':shared:podInstall' (type 'PodInstallTask').
  - In plugin 'org.jetbrains.kotlin.gradle.scripting.internal.ScriptingKotlinGradleSubplugin' type 'org.jetbrains.kotlin.gradle.targets.native.tasks.PodInstallTask' property 'podfile$kotlin_gradle_plugin_common' specifies file '~/Desktop/sandbox/Notflix/iOSNotflix/Podfile' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

    Possible solutions:
      1. Make sure the file exists before the task is called.
      2. Make sure that the task which produces the file is declared as an input.

There was another one and I tried to find those classes and could not, are they really in com.vickikbt.shared.domain.utils?

> Task :shared:compileKotlinIOS FAILED
e: file:///Users/Andrei.Sheremeev/Desktop/sandbox/Notflix/shared/src/iOSMain/kotlin/com/vickikbt/shared/di/Module.kt:3:41 Unresolved reference: DatabaseDriverFactory
e: file:///Users/Andrei.Sheremeev/Desktop/sandbox/Notflix/shared/src/iOSMain/kotlin/com/vickikbt/shared/di/Module.kt:5:30 Unresolved reference: ios
e: file:///Users/Andrei.Sheremeev/Desktop/sandbox/Notflix/shared/src/iOSMain/kotlin/com/vickikbt/shared/di/Module.kt:10:14 Unresolved reference: DatabaseDriverFactory
e: file:///Users/Andrei.Sheremeev/Desktop/sandbox/Notflix/shared/src/iOSMain/kotlin/com/vickikbt/shared/di/Module.kt:13:14 Unresolved reference: Ios
raseln commented 1 year ago

Same problem occurred to me also. The project was continuously failing to build. Then after changing the below lines in shared/build.gradle.kts, the build was successful.

Changed the line podfile = project.file("../iOSNotflix/Podfile") into podfile = project.file("../app-iOS/Podfile")

VictorKabata commented 1 year ago

The most recent updates should have resolved the issue.