Home > Mobile >  How to use MaterialDesign components in the android source code
How to use MaterialDesign components in the android source code

Time:11-28

Google in 18 years out of the new MaterialDesign components in android in the studio. As long as rely on com Google. Android. The material of aar package is ok, but will depend on the package copy to libs in source, adding dependent, compile or error,
LOCAL_PREBUILT_STATIC_JAVA_LIBRARIES:=\
Material - the aar: libs/material - 1.2.0 - alpha03. Aar \

LOCAL_STATIC_JAVA_AAR_LIBRARIES:=\
Material - the aar \

Error:/ShapeAppearance. MaterialComponents. LargeComponent) not found.
: attr/cornerSize) 'not found.
: attr/cornerFamily) 'not found.
: style/ShapeAppearance. MaterialComponents. MediumComponent) not found.

Some of these resources in dependence on the bag, why not found?

CodePudding user response:

Gradle rely on adding androidx

CodePudding user response:

AOSP written in Android source. Mk documents compiled MaterialDesign components

CodePudding user response:

Need not download the aar z directly import
The second picture is to use AndroidX





  • Related