Disable asset compression in Android Studio

I'm having trouble installing a signed version of my app on Android Wear. Some say this because of asset squeezing.

How to disable asset compression in gradle in android studio?

+5
source share
2 answers

You can disable AAPT compression for given file types through the aaptOptions block in the android block of your build script:

 android { ... aaptOptions { noCompress 'png' } } 

Having said that, it is unlikely that disabling asset compression will solve your problem; the assembly system in most cases should be able to create a compatible application without resorting to secret parameters. If disabling compression does not help, you can change your question or ask a new one.

+15
source

Per Packet Compression Compression :

Android Studio does not compress your APK by default, but if you use a different build process, make sure that you do not double compress the downloadable application.

This is not a problem if you use Android Studio and the wearApp directive in the wearApp file.

0
source

Source: https://habr.com/ru/post/1208563/


All Articles