Import and open sample project #693
-
Hi there! Thank you for this great library. I am pretty new to compose multiplatform and I am trying to use your library in my project. Therefore I am trying to debug your sample app and get a better understanding of how to use the components and how the library works. Problem is that after cloning the sample project android studio does not seem to correctly "detect" the android app module. So that I cannot add a run config for android and for example jump to declarations using command + click. Is there anything that I need to pay attention to? Or how can I solve it? Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Are there any Gradle sync or build errors? Make sure you open the I use IDEA, but Android Studio should also work. |
Beta Was this translation helpful? Give feedback.
-
It actually asks me to link the gradle project.. not very much which steps I need to take here.. |
Beta Was this translation helpful? Give feedback.
-
Try to open the Decompose project / directory instead of sample, so that Android Studio will be able to load the project correctly. After that, you should see the run configuration on the top with the name "sample.app-android". This is a common mistake if you are new in Gradle and/or Kotlin Multipaltform. You have opened the sample directory of the project. This however does not include the gradle build files that are located in The |
Beta Was this translation helpful? Give feedback.
-
Totally makes sense! Thanks :) It works now |
Beta Was this translation helpful? Give feedback.
Try to open the Decompose project / directory instead of sample, so that Android Studio will be able to load the project correctly. After that, you should see the run configuration on the top with the name "sample.app-android".
This is a common mistake if you are new in Gradle and/or Kotlin Multipaltform. You have opened the sample directory of the project. This however does not include the gradle build files that are located in
Decompose/
(outside of sample). Therefore, it cannot find the "entry point" for gradle and asks you to configure the project. The files/settings.gradle.kts
,/build.gradle.kts
are basically the project configuration files, and anything in sub folders are the modul…