mutualmobile / PraxisKMP

A Kotlin multiplatform base project
49 stars 11 forks source link

Can't Build - Caused by: Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'main' for SourceSet #11

Open ashleyvaccaro opened 2 years ago

ashleyvaccaro commented 2 years ago

Trying to build your project. Getting this error on gradle sync Caused by: groovy.lang.MissingPropertyException: Could not get unknown property 'main' for SourceSet container of type org.gradle.api.internal.tasks.DefaultSourceSetContainer.

What Android Studio version are you using?

shubhamsinghmutualmobile commented 2 years ago

Hi @ashleyvaccaro

The project is building (and running) fine on Android Studio Bumblebee | 2021.1.1 Patch 2 Build #AI-211.7628.21.2111.8193401, built on February 17, 2022

What is your Android Studio version? Maybe we can try using that and see how we can solve the issue.

ashleyvaccaro commented 2 years ago

Hi thanks so much for your response! @shubhamsinghmutualmobile

I am currently also running that same exact version.

Android Studio Bumblebee | 2021.1.1 Patch 2
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Non-Bundled Plugins: com.thoughtworks.gauge (211.6693.111), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40), com.jetbrains.kmm (0.3.1(211-1.6.10-release-960-IJ)-89), org.intellij.plugins.markdown (211.7142.37)

Kotlin Multiplatform Mobile plugin is also - 0.3.1(211-1.6.10-release-960-IJ)-89 Kotlin Versions is - 1.6.10 Gradle build tools - 7.1.2 Gradle Wrapper - distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip

shubhamsinghmutualmobile commented 2 years ago

For me, the differences lie in,

  1. Gradle build tools - 7.1.1 and
  2. Gradle Wrapper - distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip

Can you try making these changes and try again?