# AddFileToCopy(string, string)

> Declare a file to copy into the Gradle project.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Android](/engine/6000.0/script-reference/unityeditor/android.md)
* **Assembly:** UnityEditor.Android.Extensions

```csharp
public void AddFileToCopy(string source, string destination)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to a source file. This can be an absolute or relative path. If it's relative, the root of the path is the Unity project's root.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The path to place the file copy. This is relative to the Gradle project root.

### Remarks

If another file with the same destination has already been added, Unity throws an exception.
