everything is ok in my PC, and I can build and release signed apk, but when I try to build the project in the VSTS I faced this issue
I am using default VSTS android build definition, but I've added a NPM task to it, so that I can omit adding node_modules content to source control, so with NPM task, I can run NPM install and all packages download from web each time I run a build,
I also set working directory if gradlew to android
other build settings are VSTS default android definition
2018-08-08T15:05:01.8528146Z
2018-08-08T15:05:01.8529393Z FAILURE: Build failed with an exception.
2018-08-08T15:05:01.8529853Z
2018-08-08T15:05:01.8530018Z What went wrong:
2018-08-08T15:05:01.8530197Z A problem occurred configuring project ':app'.
2018-08-08T15:05:01.8530410Z > Could not resolve all dependencies for configuration ':app:_debugApk'.
2018-08-08T15:05:01.8530611Z > A problem occurred configuring project ':react-native-vector-icons'.
2018-08-08T15:05:01.8530804Z > Failed to notify project evaluation listener.
2018-08-08T15:05:01.8531030Z > com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V
2018-08-08T15:05:01.8531184Z
2018-08-08T15:05:01.8531332Z Try:
2018-08-08T15:05:01.8531540Z 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.
2018-08-08T15:05:01.8531828Z
2018-08-08T15:05:01.8532157Z * Get more help at https://help.gradle.org
2018-08-08T15:05:02.0416895Z
2018-08-08T15:05:02.0417481Z Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
2018-08-08T15:05:02.0417791Z See https://docs.gradle.org/4.8.1/userguide/command_line_interface.html#sec:command_line_warnings
2018-08-08T15:05:02.0417952Z BUILD FAILED in 1m 53s
2018-08-08T15:05:02.0418057Z
2018-08-08T15:05:02.5425533Z Error: D:\a\1\s\gradlew.bat failed with return code: 1
2018-08-08T15:05:02.5427150Z at ChildProcess. (D:\a_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\2.137.1\node_modules\vsts-task-lib\toolrunner.js:569:30)
2018-08-08T15:05:02.5432203Z at emitTwo (events.js:106:13)
2018-08-08T15:05:02.5432306Z at ChildProcess.emit (events.js:191:7)
2018-08-08T15:05:02.5432396Z at maybeClose (internal/child_process.js:886:16)
2018-08-08T15:05:02.5432514Z at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
Similar issue was raised last year, but it had another reason #480
I'm using
react-native: 0.55.4 "react-native-vector-icons": "^5.0.0"
everything is ok in my PC, and I can build and release signed apk, but when I try to build the project in the VSTS I faced this issue
I am using default VSTS android build definition, but I've added a NPM task to it, so that I can omit adding node_modules content to source control, so with NPM task, I can run NPM install and all packages download from web each time I run a build, I also set working directory if gradlew to android
other build settings are VSTS default android definition
Similar issue was raised last year, but it had another reason #480