---
title: Set application build ID
source: https://docs.newrelic.com/docs/mobile-monitoring/new-relic-mobile/mobile-sdk/set-application-build-number
---

> #### ⚠️ IMPORTANT
>
> If you're using a hybrid mobile agent (React Native, .NET Maui, etc.), refer to the platform-specific methods below.

## Android

> #### ⚠️ IMPORTANT
>
> As of version 5.3.0 of the New Relic Android agent, `withBuildIdentifier()` has replaced `NewRelic.withApplicationBuild()`.

### Syntax [#syntax]

#### Java [#java]

```java
NewRelic.withApplicationBuild(string $buildId)
```

#### Kotlin [#kotlin]

```kotlin
NewRelic.withApplicationBuild(buildId: String?)
```

### Description [#description]

This call allows you to set a custom build identifier string that appears next to the application version in the [Crash report page](https://docs.newrelic.com/docs/mobile-monitoring/mobile-monitoring-ui/crashes/mobile-apps-crash-report-dashboard#details). Instead of using the `versionCode` string defined in `AndroidManifest.xml`, call the `withApplicationBuild()` method and pass along the custom build ID as a string.

### Parameters [#parameters]

| Parameter  | Type     | Description                               |
| ---------- | -------- | ----------------------------------------- |
| `$buildId` | `string` | Required. The string indicating build ID. |

### Example [#example]

#### Java [#java]

```java
NewRelic.withApplicationToken("").withApplicationBuild("156").start(this.getApplication());
```

#### Kotlin [#kotlin]

```kotlin
NewRelic.withApplicationToken("").withApplicationBuild("1").start(applicationContext)
```

## iOS

### Syntax [#syntax]

#### Objective-c [#objc]

```objectivec
setApplicationBuild:(NSString *_Nonnull)versionString;
```

#### Swift [#swift]

```swift
NewRelic.setApplicationBuild:(NSString*)versionString;
```

### Description [#description]

By default, New Relic uses the `CFBundleVersion` when reporting the build number. But you can override the reported build number by calling this method (before calling `startWithApplicationToken`).

### Parameters [#parameters]

| Parameter       | Type       | Description                                                      |
| --------------- | ---------- | ---------------------------------------------------------------- |
| `versionString` | `NSString` | Required. The string to display this application's build number. |

### Example [#example]

#### Objective-C [#obj-c]

```objectivec
[NewRelic setApplicationBuild:@"42"];
```

#### Swift [#swift]

```swift
NewRelic.setApplicationBuild("42")
```
