aloisdeniel / vsts-flutter-tasks

Flutter build tasks for Azure DevOps Pipelines/TFS.
https://marketplace.visualstudio.com/items?itemName=aloisdeniel.flutter
105 stars 83 forks source link

Facing issues with flutter.bat not found when run with azure pipeline for flutter build vs2019 environment #79

Open MIT-Hemanathankumar opened 3 years ago

MIT-Hemanathankumar commented 3 years ago

2021-03-11T19:52:49.2208981Z ##[debug]Evaluating condition for step: 'Flutter Build apk' 2021-03-11T19:52:49.2211681Z ##[debug]Evaluating: always() 2021-03-11T19:52:49.2212454Z ##[debug]Evaluating always: 2021-03-11T19:52:49.2214771Z ##[debug]=> True 2021-03-11T19:52:49.2215479Z ##[debug]Result: True 2021-03-11T19:52:49.2216083Z ##[section]Starting: Flutter Build apk 2021-03-11T19:52:49.2878483Z ============================================================================== 2021-03-11T19:52:49.2878799Z Task : Flutter Build 2021-03-11T19:52:49.2879072Z Description : Build a Flutter application project. 2021-03-11T19:52:49.2879292Z Version : 0.2.33 2021-03-11T19:52:49.2879669Z Author : Aloïs Deniel 2021-03-11T19:52:49.2880128Z Help : Don't forget to insert a 'Flutter Install' task before. More Information 2021-03-11T19:52:49.2880610Z ============================================================================== 2021-03-11T19:52:49.3013834Z ##[debug]Using node path: C:\agents\2.183.1\externals\node\bin\node.exe 2021-03-11T19:52:49.6317828Z ##[debug]agent.TempDirectory=D:\a_temp 2021-03-11T19:52:49.6330787Z ##[debug]loading inputs and endpoints 2021-03-11T19:52:49.6352508Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2021-03-11T19:52:49.6390127Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2021-03-11T19:52:49.6404219Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2021-03-11T19:52:49.6408539Z ##[debug]loading INPUT_APKTARGETPLATFORM 2021-03-11T19:52:49.6418475Z ##[debug]loading INPUT_BUILDNUMBER 2021-03-11T19:52:49.6420992Z ##[debug]loading INPUT_DEBUGMODE 2021-03-11T19:52:49.6426087Z ##[debug]loading INPUT_FLUTTERDIRECTORY 2021-03-11T19:52:49.6427140Z ##[debug]loading INPUT_IOSCODESIGN 2021-03-11T19:52:49.6429793Z ##[debug]loading INPUT_IOSTARGETPLATFORM 2021-03-11T19:52:49.6432552Z ##[debug]loading INPUT_PROJECTDIRECTORY 2021-03-11T19:52:49.6436685Z ##[debug]loading INPUT_TARGET 2021-03-11T19:52:49.6445702Z ##[debug]loaded 11 2021-03-11T19:52:49.6461517Z ##[debug]Agent.ProxyUrl=undefined 2021-03-11T19:52:49.6463278Z ##[debug]Agent.CAInfo=undefined 2021-03-11T19:52:49.6464694Z ##[debug]Agent.ClientCert=undefined 2021-03-11T19:52:49.6466131Z ##[debug]Agent.SkipCertValidation=undefined 2021-03-11T19:52:49.6481858Z ##[debug]FlutterToolPath=C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin 2021-03-11T19:52:49.6491358Z ##[debug]target=apk 2021-03-11T19:52:49.6509862Z ##[debug]projectDirectory=D:\a\1\s 2021-03-11T19:52:49.6511415Z ##[debug]Moving to D:\a\1\s 2021-03-11T19:52:49.6512734Z ##[debug]Project's directory : D:\a\1\s 2021-03-11T19:52:49.6513781Z ##[debug]debugMode=true 2021-03-11T19:52:49.6514661Z ##[debug]buildName=null 2021-03-11T19:52:49.6515658Z ##[debug]buildNumber=20210311.12 2021-03-11T19:52:49.6516820Z ##[debug]buildFlavour=null 2021-03-11T19:52:49.6517669Z ##[debug]entryPoint=null 2021-03-11T19:52:49.6518980Z ##[debug]apkTargetPlatform=android-arm 2021-03-11T19:52:49.6528410Z ##[debug]which 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter' 2021-03-11T19:52:49.6545719Z ##[debug]found: 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:52:49.6546974Z ##[debug]which 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter' 2021-03-11T19:52:49.6552282Z ##[debug]found: 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:52:49.6557947Z ##[debug]C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat arg: ["build","apk","--debug","--target-platform=android-arm","--build-number=20210311.12"] 2021-03-11T19:52:49.6559322Z ##[debug]C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat arg: ["build","apk","--debug","--target-platform=android-arm","--build-number=20210311.12"] 2021-03-11T19:52:49.6567858Z ##[debug]exec tool: C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat 2021-03-11T19:52:49.6570565Z ##[debug]exec tool: C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat 2021-03-11T19:52:49.6572806Z ##[debug]arguments: 2021-03-11T19:52:49.6573256Z ##[debug]arguments: 2021-03-11T19:52:49.6573656Z ##[debug] build 2021-03-11T19:52:49.6574066Z ##[debug] build 2021-03-11T19:52:49.6574478Z ##[debug] apk 2021-03-11T19:52:49.6574855Z ##[debug] apk 2021-03-11T19:52:49.6575266Z ##[debug] --debug 2021-03-11T19:52:49.6575680Z ##[debug] --debug 2021-03-11T19:52:49.6576100Z ##[debug] --target-platform=android-arm 2021-03-11T19:52:49.6576573Z ##[debug] --target-platform=android-arm 2021-03-11T19:52:49.6577044Z ##[debug] --build-number=20210311.12 2021-03-11T19:52:49.6577508Z ##[debug] --build-number=20210311.12 2021-03-11T19:52:49.6592134Z [command]C:\windows\system32\cmd.exe /D /S /C "C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat build apk --debug "--target-platform=android-arm" "--build-number=20210311.12"" 2021-03-11T19:52:49.6724519Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6725309Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6726046Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6726706Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6727409Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6728087Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6728840Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6729551Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6730227Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6730915Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:49.6731852Z (node:5788) Warning: Use Cipheriv for counter mode of aes-256-ctr 2021-03-11T19:52:53.6676384Z 2021-03-11T19:52:53.6726407Z ╔════════════════════════════════════════════════════════════════════════════╗ 2021-03-11T19:52:53.6727597Z ║ Welcome to Flutter! - https://flutter.dev ║ 2021-03-11T19:52:53.6728513Z ║ ║ 2021-03-11T19:52:53.6729421Z ║ The Flutter tool uses Google Analytics to anonymously report feature usage ║ 2021-03-11T19:52:53.6730268Z ║ statistics and basic crash reports. This data is used to help improve ║ 2021-03-11T19:52:53.6731415Z ║ Flutter tools over time. ║ 2021-03-11T19:52:53.6732230Z ║ ║ 2021-03-11T19:52:53.6732736Z ║ Flutter tool analytics are not sent on the very first run. To disable ║ 2021-03-11T19:52:53.6733221Z ║ reporting, type 'flutter config --no-analytics'. To display the current ║ 2021-03-11T19:52:53.6733802Z ║ setting, type 'flutter config'. If you opt out of analytics, an opt-out ║ 2021-03-11T19:52:53.6734332Z ║ event will be sent, and then no further information will be sent by the ║ 2021-03-11T19:52:53.6734807Z ║ Flutter tool. ║ 2021-03-11T19:52:53.6735308Z ║ ║ 2021-03-11T19:52:53.6735790Z ║ By downloading the Flutter SDK, you agree to the Google Terms of Service. ║ 2021-03-11T19:52:53.6736299Z ║ Note: The Google Privacy Policy describes how data is handled in this ║ 2021-03-11T19:52:53.6736781Z ║ service. ║ 2021-03-11T19:52:53.6737281Z ║ ║ 2021-03-11T19:52:53.6737760Z ║ Moreover, Flutter includes the Dart SDK, which may send usage metrics and ║ 2021-03-11T19:52:53.6738934Z ║ crash reports to Google. ║ 2021-03-11T19:52:53.6739729Z ║ ║ 2021-03-11T19:52:53.6740610Z ║ Read about data we send with crash reports: ║ 2021-03-11T19:52:53.6741919Z ║ https://flutter.dev/docs/reference/crash-reporting ║ 2021-03-11T19:52:53.6742430Z ║ ║ 2021-03-11T19:52:53.6742966Z ║ See Google's privacy policy: ║ 2021-03-11T19:52:53.6743743Z ║ https://policies.google.com/privacy ║ 2021-03-11T19:52:53.6744248Z ╚════════════════════════════════════════════════════════════════════════════╝ 2021-03-11T19:52:53.6744492Z 2021-03-11T19:53:00.5947276Z Running "flutter pub get" in flutter_tools... 6.9s 2021-03-11T19:53:18.1558659Z Running "flutter pub get" in s... 16.7s 2021-03-11T19:53:18.1559954Z buildNumber: 20210311.12 was not a valid integer value. 2021-03-11T19:53:18.1561004Z For more information see https://developer.android.com/studio/publish/versioning.html . 2021-03-11T19:53:18.1562771Z ##[debug]Exit code 1 received from tool 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:53:18.1565479Z ##[debug]Exit code 1 received from tool 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:53:18.1567240Z ##[debug]STDIO streams have closed for tool 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:53:18.1569012Z ##[debug]STDIO streams have closed for tool 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' 2021-03-11T19:53:18.1570441Z ##[debug]task result: Failed 2021-03-11T19:53:18.1620661Z ##[error]Error: The process 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' failed with exit code 1 2021-03-11T19:53:18.1639543Z ##[debug]Processed: ##vso[task.issue type=error;]Error: The process 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' failed with exit code 1 2021-03-11T19:53:18.1641981Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: The process 'C:\hostedtoolcache\windows\Flutter\2.0.1-stable\windows\flutter\bin\flutter.bat' failed with exit code 1 2021-03-11T19:53:18.1647552Z ##[section]Finishing: Flutter Build apk