```
buildTypes {
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
aaptOptions {
ignoreAssetsPattern '!*.tflite:!*.pcm:'
}
}
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
aaptOptions {
ignoreAssetsPattern ''
}
}
}
```
这样是有效的
Unity Android打包剔除Assets/StreamingAssets下资源例如 Android打包 不想把Assets/StreamingAssets/folder1和Assets/StreamingAssets/folder2打进apk里,做法如...