Unity version 2017.4.40
Cause: there are too many files in the streamingassets folder (I put all ab packages in it)
Solution:
I found a lot on the Internet, saying that it is to modify the maintemplate.gradle file;
Personal understanding:
The maintemplate.gradle file exists in two places:
1. In the unity engine installation directory, this cannot be modified (many people directly give the file location to modify here…);
2. Assets\plugins\Android\maintemplate.gradle under the project (this file should be modified).
In playersetting, find the following figure, check it first, and then find the file in the figure
Open the file with Notepad, find the content in the figure, delete it and save it
If not, add the suffix of your own included file after deleting the location (I added it as follows)
aaptOptions { noCompress '.unity3d', '.ress', '.resource', '.obb','.xml','.bytes','.db','.txt','.anim','.prefab','.mat','.fbx','.controller' }