How to exclude asset files in Android Studio (Gradle)


#1

Hi all,

has anybody successfully excluded some specific files from adding them into final APK - folder assets?

I tried:

buildTypes {
release {
aaptOptions {
ignoreAssetsPattern ‘dummy.sql’
}

}
}

and also:

buildTypes {
release {
aaptOptions {
ignoreAssetsPattern ‘!dummy.sql’
}

}
}

in proj.android-studio/app/build.gradle, but the file “dummy.sql” will be still added into the APK.

Any ideas?