PropertyAccessNotAllowedException

Added in 8.3.1

@Incubating
class PropertyAccessNotAllowedException : RuntimeException


Exception thrown when users are trying to access VariantBuilder properties.

VariantBuilder properties are defined as kotlin properties so users can use simple assignment rather than calling a set function. However, those properties can only be set.

It is not safe to read the property value as other registered AndroidComponentsExtension.beforeVariants callbacks can run later and change the value.

If you need the final value of a property, it is most likely available in the Variant hierarchy accessible through the AndroidComponentsExtension.onVariants callbacks.

Summary

Public constructors

PropertyAccessNotAllowedException(propertyName: String, location: String)

Public properties

String
String

Inherited properties

From kotlin.Throwable

Public constructors

PropertyAccessNotAllowedException

Added in 8.3.1
PropertyAccessNotAllowedException(propertyName: String, location: String)

Public properties

location

Added in 8.3.1
val locationString

propertyName

Added in 8.3.1
val propertyNameString