How to import Android projects with different gradle versions

Bloggers have posted many Android projects. Many students commented that they can't run or report errors after importing. This is because my project version is inconsistent with your Android gradle version. Here is how to import my android project according to your gradle version.

1. First, open the Android project folder you need to import. You can see these files in it. Delete the. Gradle and. Idea folders.

2. Select the build.gradle file and open it with Notepad. You can see that here is the version number of your gradle. Mine is 3.6.1. You can view the gradle version number of projects that have run successfully before, and then modify that version number here. Of course, you can also open the project with Android studio after the first step, and then modify the file in Android studio.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>