https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
v

vashisthg

07/11/2020, 1:42 PM
Any idea about this error
Copy code
Could not determine the dependencies of task ':[projectname]:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':[projectname]:debugCompileClasspath'.
   > Could not resolve project :[shared-library-name].
     Required by:
         project :[projectname]
Cannot choose between the following variants of project :[shared-library-name]:
          - androidApiElements
          - androidCompile
          - androidCompileOnly
          - androidDefault
          - androidRuntime
          - androidRuntimeElements
          - androidTestCompile
          - androidTestRuntime
          - iosRuntimeOnly
          - jvmApiElements
          - jvmCompile
          - jvmCompileOnly
          - jvmDefault
          - jvmRuntime
          - jvmRuntimeElements
          - jvmTestCompile
          - jvmTestRuntime
a

Arkadii Ivanov

07/11/2020, 2:30 PM
Perhaps you should specify android release and debug variants for shared-library-name
Or maybe there are missing targets
v

vashisthg

07/11/2020, 5:06 PM
Thanks, for now I removed the jvm(“android” from the build.gradle .
a

Arkadii Ivanov

07/11/2020, 5:09 PM
I think it is better to define android target via
android()
, not
jvm()