PictureSelector icon indicating copy to clipboard operation
PictureSelector copied to clipboard

AAPT: error: resource android:attr/lStar not found.

Open yue-github opened this issue 3 years ago • 5 comments

##感谢你们开源

Current use version?

当前使用的版本是多少?

implementation 'io.github.lucksiege:pictureselector:v3.0.6'

Will this problem occur in demo?

Demo能否复现这问题?

可以复现这个问题,在compileSdkVersion 30 和targetSdkVersion 30会出问题,若升为31就可以,但是在真正项目中若升级为31影响了其它模块,而其它模块报的错目前在自己解决能力的范围之外
请问下,能否也支持30呢

Describe the problem or provide an error log?

描述问题或提供错误log?

目前使用(1)jdk8, gradle6.5 (2)classpath 'com.android.tools.build:gradle:4.0.0'
报的错是:res\values\values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.

yue-github avatar Mar 22 '22 13:03 yue-github

configurations.all {

resolutionStrategy {
    force 'androidx.core:core-ktx:1.6.0'
}

} 查看了issue中类似问题,但并非这种情况

yue-github avatar Mar 22 '22 13:03 yue-github

configurations.all {

resolutionStrategy {
    force 'androidx.core:core-ktx:1.6.0'
}

} 查看了issue中类似问题,但并非这种情况

yue-github avatar Mar 22 '22 13:03 yue-github

遇到同样的问题,请教下该如何解决?

ZSFeng avatar Mar 28 '22 02:03 ZSFeng

已解决,同#2252 `configurations.all { resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' force 'androidx.core:core:1.6.0'

    force 'androidx.appcompat:appcompat:1.3.1'
    force "androidx.activity:activity:1.3.1"
    force "androidx.fragment:fragment:1.3.1"
    force 'androidx.recyclerview:recyclerview:1.2.1'
}

}`

ZSFeng avatar Mar 28 '22 02:03 ZSFeng

这个问题主要是因为PictureSelector使用以下3个androidx的库版本过高导致的(1.4.1);强制改成你项目所使用的版本即可

androidx.appcompat:appcompat
androidx.activity:activity
androidx.fragment:fragment

LuckSiege avatar Jun 04 '22 03:06 LuckSiege