Appium Environment Building--installation and running Appium server failure summary point

Source: Internet
Author: User

One, run Appium failure: the. Net Framework 4.5 is not installed

Before installing the AppScan Security Testing tool, the. NET 4.5 environment is required, and one of my computers is win7-32bit, and installing. Net 4.5 has failed, prompting a critical error.

At that time on-line Baidu a lot of methods have not successfully solve this problem, now run Appium, also need. Net 4.5 above environment, can only burn their bridges to analyze a wave.

Most of the methods on the web shut down Windows Update, then locate the SoftwareDistribution folder and rename it to Sdold, and then open Windows Update again.

and uninstall clean all the. Net Framework, restart your computer, and then run the Microsoftfixit.msi file to patch and restart your computer.

These methods are useless for trying n times.

Or look at the log file honestly.

Go to the browser to view the log, then tick "Error":

You can clearly see the error message, most of it is in the point to msvcr100_clr0400.dll this library file does not have permissions.

Locate the library file under the appropriate path, and then modify its permissions to "Full Control" (Note that the administrator user).

If not, you can search the online error code in the log (for example, my: 0x80070643), see if there are other dependent libraries need to give permission.

Reinstall the. Net Framework 4.5, and finally the installation succeeds.

Second, Appium can run, but through the appium-doctor command to detect the environment, "not a valid internal control command"

1. No environment variables configured for Appium

Appium_home:d:\program Files\appium

Path:d:\program Files\appium\node_modules\.bin;d:\program Files\appium

Third,Detection of the environment via the appium-doctor command, prompting "Java home is not set"

1. No Java JDK installed or environment variable with JDK not configured

Appium is a Java-based development tool, so be sure to have a Java environment

(1) CMD run the java-version command to see if the Java JDK was successfully installed, and if not, install the Java JDK first;

(2) CMD runs the Java and Javac commands to see if it can run successfully, and if it fails, check that the environment variable is configured OK;

Java_home:d:\program files\java\jdk1.8.0_171

Path:%java_home%\bin;%java_home%\jre\bin;

Classpath:.; %java_home%\lib;%java_home%\lib\tools.jar

Remember to restart the cmd command line after all installation configuration is complete!!! Otherwise you will always be prompted to fail!

Restart the cmd command line, run the Javac and Appium-doctor commands again, and run successfully.

Appium Environment Building--installation and running Appium server failure summary point

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.