Suggestion: remove the overlay declaration at AndroidManifest.xml and place it in the build.gradle: flavorName { applicationId = "com.bigger.screenprojection" }
时间: 2024-04-13 10:30:19 浏览: 143
AndroidManifest.xml
Yes, you can remove the overlay declaration from the AndroidManifest.xml file and place it in the build.gradle file. To do this, follow these steps:
1. Open your AndroidManifest.xml file.
2. Locate the overlay declaration that you want to remove.
3. Remove the overlay declaration from the AndroidManifest.xml file.
4. Open your build.gradle file.
5. Inside the flavor block, add the following code:
```groovy
flavorName {
applicationId = "com.bigger.screenprojection"
}
```
Replace `flavorName` with the actual flavor name you are using.
By placing the overlay declaration in the build.gradle file, you can specify different application IDs for different flavors of your app. This allows you to have different overlays for each flavor without cluttering the AndroidManifest.xml file.
阅读全文