NPM I macaca-android-g failed to install successfully, run script prompt after successful installation app-debug.apk no problem

Source: Internet
Author: User

Transfer from Https://testerhome.com/topics/8618Android

Recently, the Macaca team upgraded macaca-android2.0.2 and app-inspector1.2.28, resulting in various issues after the upgrade
See Https://github.com/alibaba/macaca/issues

Now let me summarize the steps to properly reinstall the deployment

One uninstall and cleanup
NPM Uninstall macaca-android-gnpm Uninstall APP-INSPECTOR-GNPM cache Clean

You can also clean up the download cache directory:
Win10 in C:\Users\your name\appdata\local\temp manually delete NPM start related
ubuntu16.04 sudo rm-rf npm* in/tmp

Two-mount configuration Gradle

After the upgrade, Macaca used Gradle to build and deploy. So we need to install configuration gradle.
See official help Https://gradle.org/install to deploy and install Gradle.

The following output shows that the Gradle is configured correctly:
Win10 as follows

C:\users\cmd>gradle-v------------------------------------------------------------Gradle3.5------------------------------------------------------------Build Time: .-Geneva-Ten  -:Panax Notoginseng: -Utcrevision:b762622a185d59ce0cfc9cbc6ab5dd22469e18a6groovy:2.4.TenAnt:apache Ant (TM) version1.9.6Compiled on June in  -JVM:1.8.0_121 (Oracle Corporation25.121-B13) Os:windowsTen 10.0Amd64

Three guarantees the following conditions

Requires Android SDK Build-tools 25.0.2 and extras android support Repository
There is also the need for Android SDK API
"D:\Android\android-sdk-windows\SDK Manager.exe" start it tick install

Finally, the following:

Four-Mount Macaca-android

Check the
Macaca version

C:\users\cmd>macaca-v  1.2.  3

Macaca doctor

C:\users\cmd>Macaca doctor Macaca-doctor version:1.1.4node. js Checklist:nodeEnv: D:\nodejs\node.exe node version:v6.10.0Android Checklist:java version is '1.8. 0_121 ' Java_home is set to ' C:\Program files\java\jdk1.8. 0_121 ' Android_home is set to ' D:\Android\android-sdk-Windows ' platforms is set to ' D:\Android\android-sdk-windows\platforms\android- -' Android Tools is set to ' D:\Android\android-sdk-windows\tools\android.bat ' ADB tool is set to ' D:\Android\android-sdk-windows\platform-Tools\adb.exe ' gradle_home is set to ' D:\gradle-3.5' installed driver List:chrome:1.0.5Electron:1.1.6

Make sure the macaca-android driver has been uninstalled, and Android-sdk-windows is android-25, and Gradle_home is set correctly.

Next Install NPM i macaca-android-g
Specific installation success log see
https://github.com/alibaba/macaca/issues/549

Looking closely at the log discovery will use Gradle to download update deployment related components.
Ensure that each step is build successful do not appear the build faild appear that is to find the reason to reinstall.

Finally see if the following two apk is generated


The build is OK.

Four-Mount App-inspector

Ensure macaca-android Normal, continue to install
NPM I app-inspector-g can
Specific successful installation log see
https://github.com/alibaba/macaca/issues/550

This is all OK, congratulations on your good luck.
Look at the installation log to locate the problem start Macaca related plus--verbose to get more information about the execution process.

Add ubuntu16.04 just start genymotion2.8.1 not, I do not know why, upgrade the next for 2.9.0 down 6.0.0 Andro like on OK.

NPM I macaca-android-g failed to install successfully, run script prompt after successful installation app-debug.apk no problem

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.