macaca icon indicating copy to clipboard operation
macaca copied to clipboard

Build Failed when run "npm i -g maraca-android" with "Failed to notify project evaluation listener" error

Open xinxinga opened this issue 6 years ago • 2 comments

  • Macaca Version: 2.2.0

  • Macaca Doctor Logs: macaca-doctor version: 2.0.18

    Node.js checklist:

    node env: /usr/local/bin/node node version: v13.3.0

    iOS checklist:

    macOS version: 10.14.6 Xcode Command Line Tools is ready, version: 2354. xcodebuild version: 10.3 iproxy[usbmuxd] is installed at: /usr/local/bin/iproxy ios_webkit_debug_proxy is installed at: /usr/local/bin/ios_webkit_debug_proxy

    Android checklist:

    JAVA version is 1.8 JAVA_HOME is set to /Library/Java/JavaVirtualMachines/jdk1.8.0_231.jdk/Contents/Home ANDROID_HOME is set to /Users/XXX/Library/Android/sdk Platforms is set to /Users/XXX/Library/Android/sdk/platforms/android-26 ADB tool is set to /Users/XXX/Library/Android/sdk/platform-tools/adb gradle is installed, version: 6.0

    Installed driver list:

    android: 2.1.0 location: /usr/local/lib/node_modules/macaca-android

  • Operate System: MAC 10.14.6

  • Programming Language:

npm i -g macaca-android npm WARN deprecated [email protected]: Use uuid module instead npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).

[email protected] install /usr/local/lib/node_modules/macaca-android/node_modules/macaca-chromedriver node ./bin/macaca-chromedriver install

version: 2.33 chromedriver cdn url: https://chromedriver.storage.googleapis.com/2.33/chromedriver_mac64.zip chromedriver local in /usr/local/lib/node_modules/macaca-android/node_modules/macaca-chromedriver/exec/chromedriver2.33

[email protected] install /usr/local/lib/node_modules/macaca-android/node_modules/uiautomatorwd node ./scripts/build.js

(node:32375) UnhandledPromiseRejectionWarning: ,

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.0.1/userguide/command_line_interface.html#sec:command_line_warnings , FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

Failed to notify project evaluation listener. org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;

  • 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

BUILD FAILED in 624ms

(node:32375) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:32375) [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.

[email protected] install /usr/local/lib/node_modules/macaca-android/node_modules/unlock-apk node ./script/build.js

(node:32391) UnhandledPromiseRejectionWarning: ,

Configure project :app 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.0.1/userguide/command_line_interface.html#sec:command_line_warnings , FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

Failed to notify project evaluation listener. org.gradle.api.file.ProjectLayout.fileProperty(Lorg/gradle/api/provider/Provider;)Lorg/gradle/api/file/RegularFileProperty;

  • 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

BUILD FAILED in 604ms

(node:32391) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2) (node:32391) [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.

xinxinga avatar Dec 12 '19 07:12 xinxinga

please help take a look.

xinxinga avatar Dec 12 '19 10:12 xinxinga

new version is fixed please reinstall macaca-android

houseshi avatar Apr 29 '20 02:04 houseshi