Can I use the widgets in the Android l preview support library in the current Android version?

Invalid Sign

I'm trying to use widgets that don't have Android l preview devices or simulators. I've checked other problems with this problem. However, it seems that they are all trying android-l and android-l versions

This is my dependence

This is my target configuration

Thank you in advance for any ideas

resolvent:

Invalid Sign

When I compile an app containing android-l components, the builder locks the minsdkversion and targetsdkversion to the same level. The new support libraries (recyclerview, cardview, palette, etc.) are also locked at the L API level

This behavior only occurs on this Android - L preview version

Its fix is to put the following in androidmanifest.xml. I don't need to change anything on the gradle script

<uses-sdk
  tools:node="replace" />

Starting from Android gradle plugin version 0.11, a new manifest merge is enabled by default. It allows us to do something niffy. This specific configuration tells the manifest processor to use this attribute to replace any attribute of the uses SDK node in the lower priority list (such as the library list in this example)

Since gradle also inserts the minsdkversion and targetsdkversion in build.gradle into the uses SDK node, this is what we really need to add

Check here for more information about this problem. Check here for information about manifest merge

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>