# AddElementDependencies(IEnumerable<uint>)

> Adds a list of dependencies by ID to this element.

## Definition

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

```csharp
public void AddElementDependencies(IEnumerable<uint> elements)
```

### Parameters

**** (\[IEnumerable\<uint>]\(https\://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1)): Collection of elements this element will depend on.

### Remarks

This element depends on the given elements and therefore will be printed below the specified elements in the generated file.

Unity throws an exception if:

* Any of the provided elements do not share the same parent.
* Any of the provided elements are empty.
* This element is empty.
