How does Android Studio change the SDK version (for non-gradle) and androidgradle

Source: Internet
Author: User

How does Android Studio change the SDK version (for non-gradle) and androidgradle

There have been too many things recently, and I haven't updated it for a short time. I thought about what to write, even though there was a mess with the original plans.

Recently, many people are asking how to change the SDK version of Android Studio. If gradle is not used for compilation. When will this happen? For example, you can directly check the project from the server. Or import a non-gradle project. For example, for eclipse projects, you do not have an export, and then directly import it to Android studio.

So how to change the SDK version? First, I want to explain that during the import process, there will be an interface for you to choose the SDK version. We recommend that you directly select the SDK version here, because Android studio has a bug in SDK version change, which sometimes does not take effect. However, this bug is hard to come about.

When importing the project, set the SDK version:


How can I change it? As a matter of practice, let me:

File --> Project structure, open the following interface, which is to change the SDK version of the entire Project:


Here we make changes to different modules.


All right, select the sdk version you want, apply, and then OK.


Note: This is a little different for non-gradle, and there will be articles for gradle later. There is no need to look at what the style is white or black. if the article was written on a company computer, it would be black. If it was written on a company computer, it would be white, because I use different as themes on two computers.


The project created by android studio remains in building gradle project info.

There is no development tool worse than it. With eclipse, why should google develop such a bad tool? The development is fine. Why should it be released before it is complete, if it is not perfect, it will be released. Why is it so bad after such a long release ?! The first time a project is created, it cannot be opened when the layout file is loaded. After the sdk is set, it will die. After the upgrade, a new project will be created, and the interface will be stuck. It turns out that there are so many predecessors who have encountered the same problem, the ridiculous studio ......
 
When Android Studio starts creating a project, Failed to import Gradle project: cocould not fetch model of type'

To install Andriod Support Repository,

If you have already installed android studio or reported an error, it is because the ANDROID_HOME settings are incorrect. It should be android-studio/sdk instead of android-studio.

Gook luck!



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.