# AddElement(BaseElement)

> Adds a new element as a child.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Android.Gradle](/engine/6000.3/script-reference/unity/android/gradle.md)
* **Assembly:** Unity.Android.Gradle

```csharp
public void AddElement(BaseElement element)
```

### Parameters

**** (\[BaseElement]\(/engine/6000.3/script-reference/unity/android/gradle/baseelement)): Element to add as a child.

### Remarks

Unity throws an exception if:

* The provided element already has a parent.
* A parent of this element has a raw value set.
* This element has a raw value set.
