Android Studio download and installation and Gradle configuration (very detailed) from zero-based entry to proficiency, reading this article is enough

Article directory

  • download
  • Install
  • Modify the location of Sdk
  • create project
  • Modify the location of Gradle
  • View AS version
  • Toolbar – View Item
  • Toolbar – function description under Build
  • Build Variants View Description
  • Download emulator (avd)/android virtual device
    • screen off function
    • Turn off the virtual device function
    • Delete self-developed application software
    • Run the developed application on the virtual device.
  • Modify the location of the simulator

download

Download address: Official download address
Open it and pull down until the last I agree to the terms.
insert image description here
insert image description here
The android studio version selected here is: 2021.2.1.16, and you can also download other versions according to your needs.
insert image description here
So far, the downloading process has been explained, because the interface of the official website will change from time to time. There will be changes in the future, and then update the download method.

Install

Double-click the above exe file
insert image description here
Click Next Click
insert image description here
Next
insert image description here
Click Next
insert image description here
Click Install
insert image description here
Click Next
insert image description here
Click Finish
insert image description here
insert image description here
insert image description here

insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

Modify the location of Sdk

insert image description here
insert image description here
insert image description here
insert image description here
click OK
insert image description here
insert image description here
insert image description here
insert image description here
insert image description here

create project

insert image description here
insert image description here
insert image description here
insert image description here

Modify the location of Gradle

For the first time, after creating the AS project, what should I do if Android sutdio opens a project very slowly for the first time?
How does Android Studio know which Gradle to use? The Gradle used by an AS project is determined by the following file in our project:

{your project}/gradle/wrapper/gradle-wrapper.properties

insert image description here

distributionBase: The main directory where the downloaded Gradle compressed package is decompressed and stored.
distributionPath: The path of the decompressed Gradle compressed package relative to distributionBase. zipStoreBase: Same as distributionBase, but only stores
the zip compressed package. distributionUrl
of the zip compressed package
: the download address of the compressed package of the Gradle release version

The distributionUrl in the last row determines the gradle version used by this project, which means that different projects can use different gradle versions.
Principle: When Android Studio opens a project, it will first read the gradle-wrapper.properties file, so as to know which version of gradle is required for this project, and then go to the folder GRADLE_USER_HOME where the gradle is saved to find out whether this version of gradle exists If it does not exist, it will go to distributionUrl to download. After figuring out the process, do you understand now why it is so slow to open a project for the first time, because AS will download gradle.
Modify: gradle-wrapper.properties file, if you want to specify the version of gradle, modify the version in distributionUrl, only change the later version, to prevent slow automatic download, you can put the good zip package downloaded in advance into (C: \Users\Administrator.gradle\wrapper\dists\gradle-7.xx-bin\6a41zxkdtcxs8rphpq6y0069z directory, be careful not to decompress). Then open the project again, the download of gradle will be skipped, and it will be decompressed automatically. Then download the dependent jar package (if any) required by the project.
Let's talk about the modification: GRADLE_USER_HOME
modification: The path of the GRADLE_USER_HOME variable, the default is C:\users{user name}.gradle, by default, the downloaded gradle version and the dependent jar package downloaded according to gradle in the project are all in this C:\users{user name}.gradle users{user name}.gradle path.
insert image description here
You can re-specify the GRADLE_USER_HOME path in the system environment variable, and then copy all the content under C:\users{user name}.gradle to the new path to prevent the C drive from getting bigger.

We can also take another way to specify the gradle version and location used by the current project. The storage path of the dependent package downloaded by gradle, in this way we do not use the gradle-wrapper.properties file.
1. Go to the gradle official website to download the gradle version.
Gradle download address: https://services.gradle.org/distributions/
For example: Here we download a version 7.3.2
insert image description here
Manual decompression:
insert image description here
Then configure the global environment variables of gradle:
insert image description here
Verify that the configuration is successful.
insert image description here
If the above version information appears, the configuration is successful.
Manually create the storage path of the dependent packages downloaded by gradle:
D:\software\gradle-repository
insert image description here
Open the project
insert image description here
insert image description here
insert image description here
and then restart the project: the gradle-wrapper.properties file will no longer be automatically read.

insert image description here
This cleans up some configuration caches. to use the new configuration.
Note: There is a small episode here. When reading the gradle configuration, the gradle prompt cannot be lower than 7.3.3 (because we downloaded 7.3.2 earlier), and when running the program, it prompts that the JDK cannot be lower than 11.
Here is another version 7.4.2, gradle. You can download a higher version of jdk by yourself, or use the JDK that comes with AS.
insert image description here
Let's talk about it again: Project Structure under File
insert image description here
insert image description here
insert image description here

insert image description here
insert image description here

View AS version

insert image description here
insert image description here

Toolbar – View Item

So the hidden views can be found under View --> Tool Windows
insert image description here

Toolbar – function description under Build

insert image description here

Build Variants View Description

Select the construction mode for the current module, and the default position of the view is the lower left corner of the AS engineering interface
insert image description here

Download emulator (avd)/android virtual device

insert image description hereinsert image description here
insert image description here
insert image description here
insert image description here
insert image description here

screen off function

insert image description here

Turn off the virtual device function

insert image description here

Delete self-developed application software

insert image description here
insert image description here

Run the developed application on the virtual device.

Method 1: directly drag the built apk file into the virtual device, and it will be installed automatically. But in this way, our source code changes, it is not convenient to check its effect in time, and we need to uninstall and install again.
Method 2: When debugging basic virtual devices during development, you always choose method 2. This method will not generate apk under the module name /build/outputs/ of the computer. Will only have this apk on the virtual device.
insert image description hereinsert image description here

Modify the location of the simulator

By default, the downloaded virtual device will be stored in C:\Users{username}.android\avd.
insert image description hereinsert image description here
Because the virtual device occupies too much disk, it is not recommended to put it under the C drive. The following describes how to migrate it to the D drive.
Here is an explanation of the difference between .avd and .ini. The .ini file is where our avd is stored. That is, the AS software finds the corresponding avd according to the .ini file.
insert image description here
The .ini file path does not change, just move the .avd folder to the desired location. Put it here: D:\software\Android\AndroidAvd
insert image description here
insert image description here
insert image description here
Restart the AS software. Start the avd device. If it starts normally, the migration is fine.

**题外话**

=========

Many people who are new to the computer industry or graduates of computer-related majors have encountered obstacles everywhere due to lack of practical experience. Let's look at two sets of data:

  • The 2023 national college graduates are expected to reach 11.58 million, and the employment situation is severe;

  • According to the data released by the National Network Security Publicity Week, by 2027, the shortage of network security personnel in my country will reach 3.27 million.

    On the one hand, the employment situation of fresh graduates is severe every year, and on the other hand, there is a gap of one million cyber security talents.

On June 9, the 2023 edition of the Employment Blue Book of MyCOS Research (including the 2023 Employment Report for Undergraduates in China and the Employment Report for Higher Vocational Students in China in 2023) was officially released.

Top 10 Majors with Higher Monthly Salary for 2022 College Graduates

The monthly income of undergraduate computer science majors and higher vocational automation majors is relatively high. The monthly income of the 2022 class of undergraduate computer science and higher vocational automation majors is 6,863 yuan and 5,339 yuan, respectively. Among them, the starting salary of undergraduate computer majors is basically the same as that of the 2021 class, and the monthly income of higher vocational automation majors has increased significantly. The 2022 class of overtaking railway transportation majors (5295 yuan) ranks first.

Specifically, depending on the major, the major with a higher monthly income for undergraduates in 2022 is information security (7579 yuan). Compared with the class of 2018, undergraduate majors related to artificial intelligence, such as electronic science and technology, automation, performed well, and their starting salaries increased by 19% compared with five years ago. Although data science and big data technology are newly added majors in recent years, they have performed well, and have ranked among the top three majors with higher monthly income half a year after graduation for the 2022 class of undergraduates. The only humanities and social science major that entered the top 10 undergraduate high-paying list five years ago-French has dropped out of the top 10.

"There is no national security without cybersecurity". At present, network security has been elevated to the height of national strategy and has become one of the most important factors affecting national security and social stability.

Characteristics of the network security industry

1. The employment salary is very high, and the salary rises quickly. In 2021, Liepin.com released the highest employment salary in the network security industry, which is 337,700 yuan per capita!

2. There is a large talent gap and many employment opportunities

On September 18, 2019, the official website of the "Central People's Government of the People's Republic of China" published: my country needs 1.4 million cyberspace security talents, but schools across the country train less than 1.5 million people each year. Liepin.com's "Cyber ​​Security Report for the First Half of 2021" predicts that the demand for cyber security talents will be 3 million in 2027, and there are only 100,000 employees currently engaged in the cyber security industry.

The industry has a lot of room for development and many jobs

Since the establishment of the network security industry, dozens of new network security industry positions have been added: network security experts, network security analysts, security consultants, network security engineers, security architects, security operation and maintenance engineers, penetration engineers, information security management Data Security Engineer, Network Security Operations Engineer, Network Security Emergency Response Engineer, Data Appraiser, Network Security Product Manager, Network Security Service Engineer, Network Security Trainer, Network Security Auditor, Threat Intelligence Analysis Engineer, Disaster Recovery Professional , Actual combat offensive and defensive professionals...

Great career potential

The network security major has strong technical characteristics, especially mastering the core network architecture and security technology in the work, which has an irreplaceable competitive advantage in career development.

With the continuous improvement of personal ability, the professional value of the work will also increase with the enrichment of one's own experience and the maturity of project operation, and the appreciation space is bullish all the way, which is the main reason why it is popular with everyone.

To some extent, in the field of network security, just like the doctor profession, the older you are, the more popular you become. Because the technology becomes more mature, the work will naturally be valued, and promotion and salary increase are a matter of course.

How to Learn Hacking & Cyber ​​Security

Today, as long as you give my article a thumbs-up, I will share my private collection of online security learning materials with you for free, so let’s see what is there.

1. Learning Roadmap

There are also many things to learn in attack and defense. I have written all the specific things to learn in the roadmap above. If you can learn them, you will have no problem getting a job or taking private jobs.

2. Video Tutorial

Although there are many learning resources on the Internet, they are basically incomplete. This is a video tutorial on cyber security recorded by myself. I have a supporting video explanation for every knowledge point in the above roadmap.

The content covers the study of network security law, network security operation and other guarantee assessment, penetration testing basics, detailed explanation of vulnerabilities, basic computer knowledge, etc., which are all learning contents that must be known when getting started with network security.

(It’s all packed into one piece and cannot be unfolded one by one. There are more than 300 episodes in total)

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

3. Technical documents and e-books

The technical documents are also compiled by myself, including my experience and technical points of participating in large-scale network security operations, CTF and SRC vulnerability mining. There are also more than 200 e-books. Due to the sensitivity of the content, I will not show them one by one.

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

4. Toolkit, interview questions and source code

"If you want to do a good job, you must first sharpen your tools." I have summarized dozens of the most popular hacking tools for everyone. The scope of coverage mainly focuses on information collection, Android hacking tools, automation tools, phishing, etc. Interested students should not miss it.

There is also the source code of the case and the corresponding toolkit mentioned in my video, which can be taken away if needed.

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

Finally, there are interview questions about Internet security that I have sorted out in the past few years. If you are looking for a job in Internet security, they will definitely help you a lot.

These questions are often encountered in interviews with Sangfor, Qi Anxin, Tencent or other major companies. If you have good questions or good insights, please share them.

Reference analysis: Sangfor official website, Qi Anxin official website, Freebuf, csdn, etc.

Content features: clear organization, including graphic representation, which is easier to understand.

Summary of content: Including intranet, operating system, protocol, penetration test, security service, vulnerability, injection, XSS, CSRF, SSRF, file upload, file download, file inclusion, XXE, logic vulnerability, tool, SQLmap, NMAP, BP, MSF…

Due to limited space, only part of the information is shown, you need to click the link below to get it

CSDN spree: "Hacker & Network Security Introduction & Advanced Learning Resource Pack" free sharing

Guess you like

Origin blog.csdn.net/Python_0011/article/details/132060160