alibaba / macaca

Automation solution for multi-platform. 多端自动化解决方案
https://macacajs.github.io
MIT License
3.16k stars 418 forks source link

windows10环境, uiautomatorwd@1.1.1 安装失败 #959

Closed maxima-ying closed 4 years ago

maxima-ying commented 4 years ago

试了gradle 6.0.1, 6.1和 3.2都不行。 能帮忙看一下是什么问题,怎么解决吗?

6.1的log如下: C:\temp\104.MacacaPlayground\macaca-sample\sample-nodejs>npm i uiautomatorwd --save

uiautomatorwd@1.1.1 install C:\temp\104.MacacaPlayground\macaca-sample\sample-nodejs\node_modules\uiautomatorwd node ./scripts/build.js

(node:17144) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): ,

Configure project :app WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html 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 WARNING: The specified Android SDK Build Tools version (25.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1. Android SDK Build Tools 28.0.3 will be used. To suppress this warning, remove "buildToolsVersion '25.0.2'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.1/userguide/command_line_interface.html#sec:command_line_warnings , FAILURE: Build failed with an exception.

BUILD FAILED in 3s

(node:17144) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-router@4.3.1 requires a peer of react@>=15 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.10.0-beta.3 (node_modules\ios-deploy): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.10.0-beta.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

macaca-bot commented 4 years ago

This is the translated issue:


windows10 environment, uiautomatorwd@1.1.1 installation fails

Tried gradle 6.0.1, 6.1 and 3.2 will not work. You can help to look at what the problem is, how to solve it?

6.1 log is as follows: C: \ temp \ 104.MacacaPlayground \ macaca-sample \ sample-nodejs> npm i uiautomatorwd --save

Uiautomatorwd@1.1.1 install C: \ temp \ 104.MacacaPlayground \ macaca-sample \ sample-nodejs \ node_modules \ uiautomatorwd Node ./scripts/build.js

(Node: 17144) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2):,

Configure project: app WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation' and 'androidTestApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html 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 WARNING: The specified Android SDK Build Tools version (25.0.2) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.2.1. Android SDK Build Tools 28.0.3 will be used. To suppress this warning, remove "buildToolsVersion '25 .0.2 '" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.1/userguide/command_line_interface.html#sec:command_line_warnings , FAILURE: Build failed with an exception.

BUILD FAILED in 3s

(Node: 17144) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.. npm WARN ajv-keywords@2.1.1 requires a peer of ajv@^5.0.0 but none is installed. You must install peer dependencies yourself. npm WARN react-router@4.3.1 requires a peer of react @> = 15 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.10.0-beta.3 (node_modules \ ios-deploy): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.10.0-beta.3: wanted { "os": "darwin", "arch": "any"} (current: { "os": "win32 "," arch ":" x64 "})

houseshi commented 4 years ago

new version is fixed please reinstall macaca-android