I have problems in installing signed release version of my app on Android Wear. Some say it's because of Asset Compression.
How can I disable Asset Compression in gradle in android studio?
I have problems in installing signed release version of my app on Android Wear. Some say it's because of Asset Compression.
How can I disable Asset Compression in gradle in android studio?
You can disable AAPT compression for given filetypes via an aaptOptions
block in the android
block of your build script:
android {
...
aaptOptions {
noCompress 'png'
}
}
Having said that, it seems unlikely that disabling asset compression will solve your problem; the build system in most cases ought to be able to build a compatible app without resorting to arcane options. If turning off compression doesn't help, you can modify your question or ask a new one.
Per Packaging Asset Compression:
Android Studio doesn't compress your APK by default, but if you are using another build process, ensure that you don't doubly compress the wearable app.
This is not an issue if you are using Android Studio and the wearApp
directive in your build.gradle file.