iamthevoid
04/30/2021, 10:26 AMPlease initialize at least one Kotlin target in
despite the fact all was good on previous version
Now i’ve updated canary 14 to canary 15 (updated AGP plugin as well)
Early i got this error when updated from 13 to 14 (that time it was resolved after reinstalling AS: downgrading to 13 and updating to 14 again). I can try to repeat this way, but it is strange ) Have anyone stucks with that error? Is it happens after each upgrade? How can i fix it?Javier
04/30/2021, 12:28 PMiamthevoid
04/30/2021, 1:28 PMJavier
04/30/2021, 1:30 PMJavier
04/30/2021, 1:30 PMJavier
04/30/2021, 1:31 PMiamthevoid
04/30/2021, 1:31 PMuser@MacBook-Pro-user rt-mlk-mobile-kmm % ./gradlew build
> Configure project :features:dog
Kotlin Multiplatform Projects are an Alpha feature. See: <https://kotlinlang.org/docs/reference/evolution/components-stability.html>. To hide this message, add 'kotlin.mpp.stability.nowarn=true' to the Gradle properties.
e: /Users/user/StudioProjects/_work/rt-mlk-mobile-kmm/features/dog/build.gradle.kts:13:5: Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun LibraryExtension.commonConfiguration(configurations: ConfigurationContainer, configure: LibraryExtension.() -> Unit = ...): Unit defined in ru.rt.buildsrc
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/user/StudioProjects/_work/rt-mlk-mobile-kmm/features/dog/build.gradle.kts' line: 13
* What went wrong:
Script compilation error:
Line 13: commonConfiguration(configurations)
^ Unresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun LibraryExtension.commonConfiguration(configurations: ConfigurationContainer, configure: LibraryExtension.() -> Unit = ...): Unit defined in ru.rt.buildsrc
1 error
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at <https://help.gradle.org>
BUILD FAILED in 1s
iamthevoid
04/30/2021, 1:32 PMhave you using version catalogs?What do you mean?
iamthevoid
04/30/2021, 1:35 PMtapchicoma
04/30/2021, 1:37 PMbuildSrc/build
and try to re-runiamthevoid
04/30/2021, 1:39 PMJavier
04/30/2021, 2:03 PMiamthevoid
04/30/2021, 2:09 PMandroid
fun receiver and use it in my own extensioniamthevoid
04/30/2021, 2:10 PMiamthevoid
04/30/2021, 2:12 PMandroid
lambda is not the same as expectediamthevoid
04/30/2021, 2:13 PMiamthevoid
04/30/2021, 2:15 PMcom.android.build.api.dsl.LibraryExtension
i get fail. Because it hardly parametrisd with 5 generic types
package com.android.build.api.dsl
import com.android.build.api.variant.LibraryVariantBuilder
import com.android.build.api.variant.LibraryVariant
import org.gradle.api.Incubating
import org.gradle.api.NamedDomainObjectContainer
/**
* Extension for the Android Library Gradle Plugin.
*
*
* Only the Android Gradle Plugin should create instances of this interface.
*/
@Incubating
interface LibraryExtension<
AndroidSourceSetT : AndroidSourceSet,
BuildTypeT : LibraryBuildType<SigningConfigT>,
DefaultConfigT : LibraryDefaultConfig<SigningConfigT>,
ProductFlavorT : LibraryProductFlavor<SigningConfigT>,
SigningConfigT : ApkSigningConfig> :
CommonExtension<
AndroidSourceSetT,
LibraryBuildFeatures,
BuildTypeT,
DefaultConfigT,
ProductFlavorT,
SigningConfigT,
LibraryVariantBuilder,
LibraryVariant>,
TestedExtension {
// TODO(b/140406102)
/** Aidl files to package in the aar. */
val aidlPackagedList: MutableCollection<String>?
/**
* container of Prefab options
*/
val prefab: NamedDomainObjectContainer<PrefabPackagingOptions>
}
iamthevoid
04/30/2021, 2:16 PMProject.'android'
funiamthevoid
04/30/2021, 3:22 PMJavier
04/30/2021, 3:52 PMiamthevoid
04/30/2021, 3:55 PMiamthevoid
04/30/2021, 3:56 PMJavier
04/30/2021, 4:09 PMiamthevoid
04/30/2021, 5:27 PMiamthevoid
04/30/2021, 5:29 PMiamthevoid
04/30/2021, 5:35 PMJavier
04/30/2021, 5:59 PMiamthevoid
04/30/2021, 6:32 PMiamthevoid
05/01/2021, 8:44 AMcom.android.build.api.dsl
version of LibraryExtensions is burried somewhere in AGP-alpha15 dependencies (not transitive). Downgraded to alpha14 for the present. Want to check this in next version of AGPJavier
05/01/2021, 10:39 AM