shrinkResources true can't be used on Instant Apps Feature?

Viewed 10178

When I try to shrink my Feature APK size, I use shrinkResources true in my feature Build Gradle. However it complaints Error:Resource shrinker cannot be used for libraries.

This article ask us to use it https://medium.com/jet-stories/make-your-app-instant-33855ab5d02b

Did I do something wrong or is this really not supported by Instant Apps?

3 Answers

With Reference to Google issue tracker

The fix will be in 3.2 canary 1 and afterwards release.

I just tried it again on 3.2 canary 3 and it was working. Are you sure you updated the plugin version to 3.2.0-alpha03? It's easy to overlook.

If any issue persists, please report at Google issue tracker they will re-open to examine.

Related