Android Gradle Learning Note 1

Source: Internet
Author: User

Gradle Environment Configuration

1. Find the Gradle file path, take the Mac as an example, first found in the application Android Studio, right-click "Show Package Content", in contents/gradle/gradle-2.14.1 (the version number may be different) directory found bin, You can drag the Bin folder to the terminal and there is a full path to the Bin folder.

2. Add the full directory of the Gradle Bin folder to the. bash_profile file, cd ~, and Vim. Bash_profile (not willing to command line, can be in the Finder, COMMAND + SHIFT + G, input ~, jump directly to the directory, Locate the. bash_profile file, right-click "Text Edit") to export path=${path}:/applications/android\ STUDIO.APP/CONTENTS/GRADLE/GRADLE-2.14.1/ The bin line is added to the end of the file and then saved to exit.

3. In the terminal, enter GRADLE-V to see if it is normal.

Android Gradle Learning Note 1

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.