# newInstance

inline fun <T : Any> ERROR CLASS: Symbol not found for org.gradle.api.model.ObjectFactory.newInstance(type: KClass<out T>, vararg parameters: Any): T(source)
inline fun <T : Any> ERROR CLASS: Symbol not found for org.gradle.api.model.ObjectFactory.newInstance(type: KClass<out T>, vararg parameters: Any): T(source)

Kotlin extension function taking kotlin.reflect.KClass for org.gradle.api.model.ObjectFactory.newInstance.

#### Since

4.2

#### See also

org.gradle.api.model.ObjectFactory.newInstance

inline fun <T : Any> ERROR CLASS: Symbol not found for ObjectFactory.newInstance(vararg parameters: Any): T(source)

Create a new instance of `T`, using parameters as the construction parameters.

#### Return

the created named object

#### Parameters

parameters

The construction parameters

#### Type Parameters

T

The type of object to create

#### See also

ObjectFactory.newInstance