# BaseElement

> Abstract base class for all existing gradle file elements.

## Definition

* **Type:** Class
* **Namespace:** [Unity.Android.Gradle](/engine/6000.5/script-reference/unity/android/gradle.md)
* **Assembly:** Unity.Android.Gradle
* **Implements:** [ICloneable](https://learn.microsoft.com/dotnet/api/system.icloneable)

```csharp
public abstract class BaseElement : ICloneable
```

## Methods

| Method                                                                                                                           | Description                                                            |
| -------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [AddElementDependencies](/engine/6000.5/script-reference/unity/android/gradle/baseelement/addelementdependencies.md)             | Adds a list of dependencies by ID to this element.                     |
| [AddElementDependency](/engine/6000.5/script-reference/unity/android/gradle/baseelement/addelementdependency.md)                 | Adds a dependency to this element.                                     |
| [Clear](/engine/6000.5/script-reference/unity/android/gradle/baseelement/clear.md)                                               | Clears the content of this element.                                    |
| [GetElementDependenciesIDs](/engine/6000.5/script-reference/unity/android/gradle/baseelement/getelementdependenciesids.md)       | Gets a read-only list of element IDs that this element depends on.     |
| [GetID](/engine/6000.5/script-reference/unity/android/gradle/baseelement/getid.md)                                               | Gets the unique ID of this element.                                    |
| [GetRaw](/engine/6000.5/script-reference/unity/android/gradle/baseelement/getraw.md)                                             | Gets the raw value of this element.                                    |
| [GetUniqueName](/engine/6000.5/script-reference/unity/android/gradle/baseelement/getuniquename.md)                               | Gets the unique name of the element.                                   |
| [Remove](/engine/6000.5/script-reference/unity/android/gradle/baseelement/remove.md)                                             | Removes this element from the file.                                    |
| [RemoveAllElementDependencies](/engine/6000.5/script-reference/unity/android/gradle/baseelement/removeallelementdependencies.md) | Remove all element dependencies.                                       |
| [RemoveElementDependency](/engine/6000.5/script-reference/unity/android/gradle/baseelement/removeelementdependency.md)           | Remove an element dependency.                                          |
| [RemoveElementDependencyById](/engine/6000.5/script-reference/unity/android/gradle/baseelement/removeelementdependencybyid.md)   | Remove an element dependency by ID.                                    |
| [ResolveConflict](/engine/6000.5/script-reference/unity/android/gradle/baseelement/resolveconflict.md)                           | Resolve a conflict if another script has already modified the element. |
| [SetRaw](/engine/6000.5/script-reference/unity/android/gradle/baseelement/setraw.md)                                             | Sets a raw string value to this element.                               |
| [ToString](/engine/6000.5/script-reference/unity/android/gradle/baseelement/tostring.md)                                         | Gets a serialized value of this element.                               |
