# React-native-auth0: WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'

**URL:** <https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253>\
**Category:** Get Help\
**Tags:** react-native-auth0, react-native\
**Created:** [May 15, 2019, 11:13am UTC](https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253 "2019-05-15T11:13:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![LeeMcMullen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/leemcmullen/32/13136_2.png) [@LeeMcMullen](https://community.auth0.com/u/LeeMcMullen)\
**Post date:** [May 15, 2019, 11:13am UTC](https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253/1 "2019-05-15T11:13:36Z")

</div>

I’m running version `1.4.2` and getting the following warning when running `react-native.cmd run-android`:

```
> Configure project :react-native-auth0
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.

```

I’ve updated the dependencies element in my `build.gradle` file i.e. replaced the `compile` elements with `implementation` but I still get this message for `react-native-auth0`.

I’m relatively new to React Native Android dev so unsure if this is something related to Auth0 or something which is specific to my dev environment.

Any pointers would be appreciated!

Cheers,  
Lee

---

<div class="post-metadata">

**Author:** ![LeeMcMullen](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/leemcmullen/32/13136_2.png) [@LeeMcMullen](https://community.auth0.com/u/LeeMcMullen)\
**Post date:** [May 15, 2019, 11:23am UTC](https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253/2 "2019-05-15T11:23:21Z")

</div>

Just stumbled across `build.gradle` for `react-native-auth0` in `node_modules` which has some `compile` dependencies. I changed those to `implementation`, re-ran and the warning has gone.

Obviously that’s only a temporary fix so needs an update release to npm. Found a [github issue](https://github.com/auth0/react-native-auth0/issues/202) talking about something similar so will keep an eye on that.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [May 16, 2019, 4:55pm UTC](https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253/3 "2019-05-16T16:55:00Z")

</div>

Thank you a lot for reporting that! I just pinged the repo maintainer. It will be great if you can share the outcome of the discussion here with the rest of community once it’s solved!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 3, 2019, 8:16am UTC](https://community.auth0.com/t/react-native-auth0-warning-configuration-compile-is-obsolete-and-has-been-replaced-with-implementation-and-api/25253/4 "2019-09-03T08:16:34Z")

</div>


