After listening to a useful lesson , here is a brief summary:
1. Download Android Project 1 (AS) from GitHub
2. Create a new Android project 2 locally (AS)
3. Compare the key documents in the two projects and change Project 1 to be consistent with Project 2. The modifications include:
-
build.gradle(project): The version number of the gradle plugin
-
gradle/wrapper/gradle-wrapper.properties: the distributionUrl line refers to the gradle version
-
build.gradle(app): Compiled version, target version, buildToolsVersion (you need to check the local version number, method: Default settings —" Appearance & Behavior —" System settings —" Android SDK —" SDK Tools — "Find and hit Ticked)