# CronetEngine.Builder.LibraryLoader


```
public abstract class CronetEngine.Builder.LibraryLoader
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. Now that Cronet's minSDK = 24 this method is obsolete and is a no-op.

A class which provides a method for loading the cronet native library. Apps needing to implement custom library loading logic can inherit from this class and pass an instance to `https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetEngine.Builder#setLibraryLoader(org.chromium.net.CronetEngine.Builder.LibraryLoader)`. For example, this might be required to work around `UnsatisfiedLinkError`s caused by flaky installation on certain older devices.

## Summary

| ### Public constructors |
|---|
| `[LibraryLoader](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetEngine.Builder.LibraryLoader#LibraryLoader())()` |

| ### Public methods |
|---|---|
| `abstract void` | `[loadLibrary](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetEngine.Builder.LibraryLoader#loadLibrary(java.lang.String))(https://developer.android.com/reference/java/lang/String.html libName)` **This method is deprecated.** System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. <br /> |

## Public constructors

### LibraryLoader

```
public [LibraryLoader](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetEngine.Builder.LibraryLoader#LibraryLoader())()
```

## Public methods

### loadLibrary

```
public abstract void [loadLibrary](https://developer.android.com/develop/connectivity/cronet/reference/org/chromium/net/CronetEngine.Builder.LibraryLoader#loadLibrary(java.lang.String))(String libName)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> System.loadLibrary was unreliable on minSDK \<= 23, and this method was used to provide alternative, more reliable loaders. Now that Cronet's minSDK = 24 this method is obsolete and is a no-op.

Loads the native library.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/String.html libName` | name of the library to load |