Suggestion: remove the overlay declaration at AndroidManifest.xml and place it in the build.gradle: flavorName { applicationId = "com.bigger.screenprojection" }
时间: 2024-04-13 07:30:18 浏览: 85
初三英语重要知识点整理:实义动词的过去分词.docx
Sure, you can remove the overlay declaration from the AndroidManifest.xml file and place it in the build.gradle file instead. To do this, follow these steps:
1. Open the build.gradle file for your app module.
2. Inside the android block, locate the flavor for which you want to set the applicationId.
3. Add the following code inside the flavor block:
```
flavorName {
applicationId = "com.bigger.screenprojection"
}
```
Make sure to replace `flavorName` with the actual flavor name you are targeting, and `com.bigger.screenprojection` with your desired application id.
4. Save the build.gradle file.
By doing this, you are specifying the applicationId for the specific flavor, which will override the default applicationId set in the AndroidManifest.xml file.
阅读全文