# Build works in local but not on bitrise

**URL:** <https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789>\
**Category:** Builds\
**Created:** [January 22, 2019, 7:02pm UTC](https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789 "2019-01-22T19:02:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![syogchan](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@syogchan](https://discuss.bitrise.io/u/syogchan)\
**Post date:** [January 22, 2019, 7:02pm UTC](https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789/1 "2019-01-22T19:02:15Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

Always has issue with the following when using react-native-facebook-login together react-native-splash-screen npm module together  
Program type already present: android.support.v4.app.BackStackRecord$Op

## Environment:

**Where did the issue happen?**

If on [Bitrise.io](http://Bitrise.io): which stack? If not on [Bitrise.io](http://Bitrise.io): on what operating system? (Plus any other information you can share)

**Which build Step causes the issue and which version of the step?**

E.g.: Git Clone v3.6.0

## Reproducibility

- _Does a “Rebuild” help? (You can trigger a rebuild from the Build’s page, by clicking the “Rebuild” button in the top right corner of a finished build)_ : YES/NO
- _Does a rebuild without caches help? (You can remove the `Cache:Pull` and `Cache:Push` steps temporarily to not to use the cache, or [you can delete all the caches on the `Settings` tab of the app](http://devcenter.bitrise.io/caching/about-caching/#downloading-and-deleting-caches)._ : YES/NO
- _Does the issue happen sporadically, or every time?_ :
- _Does upgrading the build Step to the latest version help?_ : YES/NO
- _When did the issue start?_ :

### Local reproduction

_Can it be reproduced on your own Mac/PC by following our [local debug guide](http://discuss.bitrise.io/t/how-to-debug-your-build-locally-it-works-on-my-mac-pc-but-not-on-bitrise-io/392)? Please follow at least the first section (“Testing with a full clean git clone”) to make sure to test the state of the code what [bitrise.io](http://bitrise.io) will get when it does a git clone in the clean environment! If possible please note which sections you tried._

### Local reproduction: Linux / Android (docker based) stack builds

_Can it be reproduced by running the build locally, after doing a new git clone of the repository into the `/tmp` directory and running the build from there with the Bitrise CLI ( [https://www.bitrise.io/cli](https://www.bitrise.io/cli) )? If no, can it be reproduced with Docker (using the same docker images / environment we use on [bitrise.io](http://bitrise.io))? Related guide: [http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/](http://devcenter.bitrise.io/docker/run-your-build-locally-in-docker/) ._

## Build log

_Please copy paste the build’s [bitrise.io](http://bitrise.io) URL here (or if the issue happens somewhere else then the full logs), or if you can’t share the url / log here then send the url or full log through a private channel (e.g. email - [https://www.bitrise.io/contact](https://www.bitrise.io/contact) ), with a link to the related Discuss issue._

---

<div class="post-metadata">

**Author:** ![syogchan](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@syogchan](https://discuss.bitrise.io/u/syogchan)\
**Post date:** [January 23, 2019, 7:46am UTC](https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789/2 "2019-01-23T07:46:17Z")

</div>

> [@syogchan](#):
>
> Build log

## Build log

e[34;1mRun build:e[0m

e[32;1m$ /Users/vagrant/git/android/gradlew “:react-native-vector-icons:assembleAndroidTest” “:react-native-vector-icons:assembleDebug” “:react-native-vector-icons:assembleDebugAndroidTest” “:react-native-vector-icons:assembleDebugUnitTest” “:react-native-vector-icons:assembleDefault” “:react-native-vector-icons:assembleRelease” “:react-native-vector-icons:assembleReleaseUnitTest” “:app:assembleAndroidTest” “:app:assembleDebug” “:app:assembleDebugAndroidTest” “:app:assembleDebugUnitTest” “:app:assembleRelease” “:app:assembleReleaseUnitTest” “:react-native-facebook-login:assembleAndroidTest” “:react-native-facebook-login:assembleDebug” “:react-native-facebook-login:assembleDebugAndroidTest” “:react-native-facebook-login:assembleDebugUnitTest” “:react-native-facebook-login:assembleDefault” “:react-native-facebook-login:assembleRelease” “:react-native-facebook-login:assembleReleaseUnitTest” “:react-native-gesture-handler:assembleAndroidTest” “:react-native-gesture-handler:assembleDebug” “:react-native-gesture-handler:assembleDebugAndroidTest” “:react-native-gesture-handler:assembleDebugUnitTest” “:react-native-gesture-handler:assembleDefault” “:react-native-gesture-handler:assembleRelease” “:react-native-gesture-handler:assembleReleaseUnitTest” “:react-native-image-picker:assembleAndroidTest” “:react-native-image-picker:assembleDebug” “:react-native-image-picker:assembleDebugAndroidTest” “:react-native-image-picker:assembleDebugUnitTest” “:react-native-image-picker:assembleDefault” “:react-native-image-picker:assembleRelease” “:react-native-image-picker:assembleReleaseUnitTest” “:react-native-splash-screen:assembleAndroidTest” “:react-native-splash-screen:assembleDebug” “:react-native-splash-screen:assembleDebugAndroidTest” “:react-native-splash-screen:assembleDebugUnitTest” “:react-native-splash-screen:assembleDefault” “:react-native-splash-screen:assembleRelease” ":react-native-splash-screen:assembleReleaseUnitTest"e[0m

> Configure project :app  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

WARNING: API ‘variant.getMergeResources()’ is obsolete and has been replaced with ‘variant.getMergeResourcesProvider()’.  
It will be removed at the end of 2019.  
For more information, see [https://d.android.com/r/tools/task-configuration-avoidance](https://d.android.com/r/tools/task-configuration-avoidance).  
To determine what is calling variant.getMergeResources(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.  
WARNING: API ‘variant.getPackageApplication()’ is obsolete and has been replaced with ‘variant.getPackageApplicationProvider()’.  
It will be removed at the end of 2019.  
For more information, see [https://d.android.com/r/tools/task-configuration-avoidance](https://d.android.com/r/tools/task-configuration-avoidance).  
To determine what is calling variant.getPackageApplication(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.  
WARNING: API ‘variant.getMergeAssets()’ is obsolete and has been replaced with ‘variant.getMergeAssetsProvider()’.  
It will be removed at the end of 2019.  
For more information, see [https://d.android.com/r/tools/task-configuration-avoidance](https://d.android.com/r/tools/task-configuration-avoidance).  
To determine what is calling variant.getMergeAssets(), use -Pandroid.debug.obsoleteApi=true on the command line to display a stack trace.

> Configure project :react-native-facebook-login  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.  
It will be removed at the end of 2018. For more information see: [http://d.android.com/r/tools/update-dependency-configurations.html](http://d.android.com/r/tools/update-dependency-configurations.html)

> Configure project :react-native-gesture-handler  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

> Configure project :react-native-image-picker  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.  
It will be removed at the end of 2018. For more information see: [http://d.android.com/r/tools/update-dependency-configurations.html](http://d.android.com/r/tools/update-dependency-configurations.html)  
WARNING: Configuration ‘testCompile’ is obsolete and has been replaced with ‘testImplementation’.  
It will be removed at the end of 2018. For more information see: [http://d.android.com/r/tools/update-dependency-configurations.html](http://d.android.com/r/tools/update-dependency-configurations.html)

> Configure project :react-native-splash-screen  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

WARNING: Configuration ‘compile’ is obsolete and has been replaced with ‘implementation’ and ‘api’.  
It will be removed at the end of 2018. For more information see: [http://d.android.com/r/tools/update-dependency-configurations.html](http://d.android.com/r/tools/update-dependency-configurations.html)  
WARNING: Configuration ‘testCompile’ is obsolete and has been replaced with ‘testImplementation’.  
It will be removed at the end of 2018. For more information see: [http://d.android.com/r/tools/update-dependency-configurations.html](http://d.android.com/r/tools/update-dependency-configurations.html)

> Configure project :react-native-vector-icons  
> NDK is missing a “platforms” directory.  
> If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/vagrant/git/android.  
> If you are not using NDK, unset the NDK variable from ANDROID\_NDK\_HOME or local.properties to remove this warning.

> Task :react-native-vector-icons:preBuild UP-TO-DATE  
> Task :react-native-vector-icons:preDebugBuild UP-TO-DATE  
> Task :react-native-vector-icons:compileDebugAidl NO-SOURCE  
> Task :react-native-vector-icons:preDebugAndroidTestBuild UP-TO-DATE  
> Task :react-native-vector-icons:compileDebugAndroidTestAidl NO-SOURCE  
> Task :react-native-vector-icons:packageDebugRenderscript NO-SOURCE  
> Task :react-native-vector-icons:checkDebugManifest  
> Task :react-native-vector-icons:processDebugManifest  
> Task :react-native-vector-icons:processDebugAndroidTestManifest  
> Task :react-native-vector-icons:compileDebugAndroidTestRenderscript  
> Task :react-native-vector-icons:generateDebugAndroidTestBuildConfig  
> Task :react-native-vector-icons:prepareLintJar  
> Task :react-native-vector-icons:generateDebugAndroidTestSources  
> Task :react-native-vector-icons:compileDebugRenderscript  
> Task :react-native-vector-icons:generateDebugResValues  
> Task :react-native-vector-icons:generateDebugResources  
> Task :react-native-vector-icons:packageDebugResources  
> Task :react-native-vector-icons:generateDebugRFile  
> Task :react-native-vector-icons:generateDebugBuildConfig  
> Task :react-native-vector-icons:generateDebugSources  
> Task :react-native-vector-icons:javaPreCompileDebug  
> Task :react-native-vector-icons:compileDebugJavaWithJavac  
> Task :react-native-vector-icons:processDebugJavaRes NO-SOURCE  
> Task :react-native-vector-icons:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug  
> Task :react-native-vector-icons:javaPreCompileDebugAndroidTest  
> Task :react-native-vector-icons:mainApkListPersistenceDebugAndroidTest  
> Task :react-native-vector-icons:generateDebugAndroidTestResValues  
> Task :react-native-vector-icons:generateDebugAndroidTestResources  
> Task :react-native-vector-icons:mergeDebugAndroidTestResources  
> Task :react-native-vector-icons:processDebugAndroidTestResources  
> Task :react-native-vector-icons:compileDebugAndroidTestJavaWithJavac  
> Task :react-native-vector-icons:compileDebugAndroidTestNdk NO-SOURCE  
> Task :react-native-vector-icons:compileDebugAndroidTestSources  
> Task :react-native-vector-icons:mergeDebugAndroidTestShaders  
> Task :react-native-vector-icons:compileDebugAndroidTestShaders  
> Task :react-native-vector-icons:generateDebugAndroidTestAssets  
> Task :react-native-vector-icons:mergeDebugShaders  
> Task :react-native-vector-icons:compileDebugShaders  
> Task :react-native-vector-icons:generateDebugAssets  
> Task :react-native-vector-icons:packageDebugAssets  
> Task :react-native-vector-icons:mergeDebugAndroidTestAssets  
> Task :react-native-vector-icons:dexDebug  
> Task :react-native-vector-icons:mergeExtDexDebugAndroidTest  
> Task :react-native-vector-icons:transformClassesWithDexBuilderForDebugAndroidTest  
> Task :react-native-vector-icons:mergeDexDebugAndroidTest  
> Task :react-native-vector-icons:validateSigningDebugAndroidTest  
> Task :react-native-vector-icons:signingConfigWriterDebugAndroidTest  
> Task :react-native-vector-icons:mergeDebugAndroidTestJniLibFolders  
> Task :react-native-vector-icons:compileDebugNdk NO-SOURCE  
> Task :react-native-vector-icons:mergeDebugJniLibFolders  
> Task :react-native-vector-icons:transformNativeLibsWithMergeJniLibsForDebug  
> Task :react-native-vector-icons:transformNativeLibsWithIntermediateJniLibsForDebug  
> Task :react-native-vector-icons:transformNativeLibsWithMergeJniLibsForDebugAndroidTest  
> Task :react-native-vector-icons:processDebugAndroidTestJavaRes NO-SOURCE  
> Task :react-native-vector-icons:transformResourcesWithMergeJavaResForDebugAndroidTest  
> Task :react-native-vector-icons:packageDebugAndroidTest  
> Task :react-native-vector-icons:assembleDebugAndroidTest  
> Task :react-native-vector-icons:assembleAndroidTest  
> Task :react-native-vector-icons:extractDebugAnnotations  
> Task :react-native-vector-icons:mergeDebugConsumerProguardFiles  
> Task :react-native-vector-icons:transformResourcesWithMergeJavaResForDebug  
> Task :react-native-vector-icons:transformClassesAndResourcesWithSyncLibJarsForDebug  
> Task :react-native-vector-icons:transformNativeLibsWithSyncJniLibsForDebug  
> Task :react-native-vector-icons:bundleDebugAar  
> Task :react-native-vector-icons:compileDebugSources  
> Task :react-native-vector-icons:assembleDebug  
> Task :react-native-vector-icons:generateDebugUnitTestSources  
> Task :react-native-vector-icons:preDebugUnitTestBuild UP-TO-DATE  
> Task :react-native-vector-icons:javaPreCompileDebugUnitTest  
> Task :react-native-vector-icons:compileDebugUnitTestJavaWithJavac NO-SOURCE  
> Task :react-native-vector-icons:processDebugUnitTestJavaRes NO-SOURCE  
> Task :react-native-vector-icons:compileDebugUnitTestSources UP-TO-DATE  
> Task :react-native-vector-icons:assembleDebugUnitTest UP-TO-DATE  
> Task :react-native-vector-icons:assembleDefault UP-TO-DATE  
> Task :react-native-vector-icons:preReleaseBuild UP-TO-DATE  
> Task :react-native-vector-icons:compileReleaseAidl NO-SOURCE  
> Task :react-native-vector-icons:compileReleaseRenderscript  
> Task :react-native-vector-icons:checkReleaseManifest  
> Task :react-native-vector-icons:generateReleaseBuildConfig  
> Task :react-native-vector-icons:generateReleaseResValues  
> Task :react-native-vector-icons:generateReleaseResources  
> Task :react-native-vector-icons:packageReleaseResources  
> Task :react-native-vector-icons:processReleaseManifest  
> Task :react-native-vector-icons:generateReleaseRFile  
> Task :react-native-vector-icons:generateReleaseSources  
> Task :react-native-vector-icons:javaPreCompileRelease  
> Task :react-native-vector-icons:compileReleaseJavaWithJavac  
> Task :react-native-vector-icons:extractReleaseAnnotations  
> Task :react-native-vector-icons:mergeReleaseConsumerProguardFiles  
> Task :react-native-vector-icons:mergeReleaseShaders  
> Task :react-native-vector-icons:compileReleaseShaders  
> Task :react-native-vector-icons:generateReleaseAssets  
> Task :react-native-vector-icons:packageReleaseAssets  
> Task :react-native-vector-icons:packageReleaseRenderscript NO-SOURCE  
> Task :react-native-vector-icons:processReleaseJavaRes NO-SOURCE  
> Task :react-native-vector-icons:transformResourcesWithMergeJavaResForRelease  
> Task :react-native-vector-icons:transformClassesAndResourcesWithSyncLibJarsForRelease  
> Task :react-native-vector-icons:compileReleaseNdk NO-SOURCE  
> Task :react-native-vector-icons:mergeReleaseJniLibFolders  
> Task :react-native-vector-icons:transformNativeLibsWithMergeJniLibsForRelease  
> Task :react-native-vector-icons:transformNativeLibsWithSyncJniLibsForRelease  
> Task :react-native-vector-icons:bundleReleaseAar  
> Task :react-native-vector-icons:compileReleaseSources  
> Task :react-native-vector-icons:mergeReleaseResources  
> Task :react-native-vector-icons:verifyReleaseResources  
> Task :react-native-vector-icons:assembleRelease  
> Task :react-native-vector-icons:generateReleaseUnitTestSources  
> Task :react-native-vector-icons:preReleaseUnitTestBuild UP-TO-DATE  
> Task :react-native-vector-icons:javaPreCompileReleaseUnitTest  
> Task :react-native-vector-icons:compileReleaseUnitTestJavaWithJavac NO-SOURCE  
> Task :react-native-vector-icons:processReleaseUnitTestJavaRes NO-SOURCE  
> Task :react-native-vector-icons:compileReleaseUnitTestSources UP-TO-DATE  
> Task :react-native-vector-icons:assembleReleaseUnitTest UP-TO-DATE  
> Task :app:preBuild UP-TO-DATE  
> Task :react-native-facebook-login:preBuild UP-TO-DATE  
> Task :react-native-facebook-login:preDebugBuild UP-TO-DATE  
> Task :react-native-facebook-login:checkDebugManifest  
> Task :react-native-facebook-login:processDebugManifest  
> Task :react-native-gesture-handler:preBuild UP-TO-DATE  
> Task :react-native-gesture-handler:preDebugBuild UP-TO-DATE  
> Task :react-native-gesture-handler:checkDebugManifest  
> Task :react-native-gesture-handler:processDebugManifest  
> Task :react-native-image-picker:preBuild UP-TO-DATE  
> Task :react-native-image-picker:preDebugBuild UP-TO-DATE  
> Task :react-native-image-picker:checkDebugManifest  
> Task :react-native-image-picker:processDebugManifest  
> Task :react-native-splash-screen:preBuild UP-TO-DATE  
> Task :react-native-splash-screen:preDebugBuild UP-TO-DATE  
> Task :react-native-splash-screen:checkDebugManifest  
> Task :react-native-splash-screen:processDebugManifest  
> Task :app:preDebugBuild FAILED

FAILURE: Build failed with an exception.

- What went wrong:  
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.

> Could not find com.android.support:support-v4:${rootProject.ext.supportLibVersion}.  
> Required by:  
> project :app

- Try:  
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

- Get more help at [https://help.gradle.org](https://help.gradle.org)

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.  
Use ‘–warning-mode all’ to show the individual deprecation warnings.  
See [Command-Line Interface](https://docs.gradle.org/4.10.1/userguide/command_line_interface.html#sec:command_line_warnings)

BUILD FAILED in 1m 20s  
78 actionable tasks: 78 executed  
e[31;1mBuild task failed, error: exit status 1e[0m

---

<div class="post-metadata">

**Author:** ![fehersanyi-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/fehersanyi-bitrise/32/1912_2.png) [@fehersanyi-bitrise](https://discuss.bitrise.io/u/fehersanyi-bitrise)\
**Post date:** [January 25, 2019, 10:48am UTC](https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789/3 "2019-01-25T10:48:33Z")

</div>

Hy there!

the problem could be this: `com.android.support:support-v4:${rootProject.ext.supportLibVersion}.`  
on bitrise, env vars don’t use the {} brackets so it may escape the value 🤔

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [February 24, 2019, 10:48am UTC](https://discuss.bitrise.io/t/build-works-in-local-but-not-on-bitrise/7789/4 "2019-02-24T10:48:36Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
