lihangleo2 / ShadowLayout

可定制化阴影的万能阴影布局ShadowLayout 3.0 震撼上线。效果赶超CardView。阴影支持x,y轴偏移,支持阴影扩散程度,支持阴影圆角,支持单边或多边不显示阴影;控件支持动态设置shape和selector(项目里再也不用画shape了);支持随意更改颜色值,支持随意更改颜色值,支持随意更改颜色值。重要的事情说三遍
MIT License
3.46k stars 401 forks source link

关于 AndroidX-supported, disable Jetifier #147

Closed boboqun closed 2 years ago

boboqun commented 2 years ago

Task :app:checkJetifier The following libraries used by project ':app' depend on legacy support libraries. To disable Jetifier, you will need to use AndroidX-supported versions of these libraries. com.github.lihangleo2:ShadowLayout:3.2.4 (Project ':app', configuration 'debugRuntimeClasspath' -> com.github.lihangleo2:ShadowLayout:3.2.4 -> com.android.support:appcompat-v7:28.0.0)

lihangleo2 commented 2 years ago

在AndroidX里如何使用?根目录下找到gradle的配置文件gradle.properties里加上以下2句代码: android.useAndroidX=true android.enableJetifier=true 看清楚文档,兄弟。非常感谢你的支持

boboqun commented 2 years ago

嗯。不是这个意思。是as推荐关闭Jetifier 就是推荐不要再依赖 com.android.support:appcompat-v7:28.0.0

lihangleo2 commented 2 years ago

这是官方推荐的方式。把你第三方依赖,在cradle编译的时候转成AndroidX使用

                            李航

                                ***@***.***

    ---- 回复的原邮件 ***@***.***>发送日期2022年05月17日 15:54 ***@***.***> ***@***.***>,State ***@***.***>主题Re: [lihangleo2/ShadowLayout] 关于 AndroidX-supported, disable Jetifier (Issue #147)

嗯。不是这个意思。是as推荐关闭Jetifier 就是推荐不要再依赖 com.android.support:appcompat-v7:28.0.0

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

[

{

@.***": "http://schema.org",

@.***": "EmailMessage",

"potentialAction": {

@.***": "ViewAction",

"target": "https://github.com/lihangleo2/ShadowLayout/issues/147#issuecomment-1128536344",

"url": "https://github.com/lihangleo2/ShadowLayout/issues/147#issuecomment-1128536344",

"name": "View Issue"

},

"description": "View this Issue on GitHub",

"publisher": {

@.***": "Organization",

"name": "GitHub",

"url": "https://github.com"

}

}

]

boboqun commented 2 years ago

嗯那 请问这个库怎么按推荐方式转换成 ‘AndroidX-supported version’ ?

lihangleo2 commented 2 years ago

兄弟,已经告诉你方式了啊……加上配置之后build下

                            李航

                                ***@***.***

    ---- 回复的原邮件 ***@***.***>发送日期2022年05月17日 16:21 ***@***.***> ***@***.***>,State ***@***.***>主题Re: [lihangleo2/ShadowLayout] 关于 AndroidX-supported, disable Jetifier (Issue #147)

嗯那 请问这个库怎么按推荐方式转换成 ‘AndroidX-supported version’ ?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you modified the open/close state.Message ID: @.***>

[

{

@.***": "http://schema.org",

@.***": "EmailMessage",

"potentialAction": {

@.***": "ViewAction",

"target": "https://github.com/lihangleo2/ShadowLayout/issues/147#issuecomment-1128565961",

"url": "https://github.com/lihangleo2/ShadowLayout/issues/147#issuecomment-1128565961",

"name": "View Issue"

},

"description": "View this Issue on GitHub",

"publisher": {

@.***": "Organization",

"name": "GitHub",

"url": "https://github.com"

}

}

]

boboqun commented 2 years ago

啊,,,你可能没理解我的意思,,, 他这报错的意思大概是需要支持 androidx 的第三方库,目的是把 android.enableJetifier 改为 false