Android Studio version modified Invalid solution

Source: Internet
Author: User

We all know that the Android version statement is in the Androidmanifest.xml file. For example

<xmlns:android= "http://schemas.android.com/apk/res/android"package     = "Com.xcode.lockcapture"    android:versioncode= "2"    android: Versionname= "1.1">

In Android Studio, Gradle is used to compile and manage a variety of miscellaneous things, including version management.

So the problem comes, when both versions declare androidmanifest and Gradle conflict,the priority of the Gradle is the highest

This leads to androidmanifest no matter how the change, the end result is not working. because when creating an Android Studio project, the IDE has been very thoughtful to help us set the version number in Gradle.

Final Solution

Both versions affirm that you can choose one of them.

PS: According to Google so thoughtful to help us to migrate some of the chores to Gradle, we recommend the use of Gradle management.

Android Studio version modified Invalid solution

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.