Solve Android AAPT: error: resource android:attr/lStar not found. problem

error message

/xxx/gjc/.gradle/caches/transforms-2/files-2.1/930c42acd29d295ce5bc495c3b84423e/core-1.9.0/res/values/values.xml:104:5-113:25: AAPT: error: resource android:attr/lStar not found.

not found resource location

Insert image description here

Scenes

The projects in the original Android studio were all old projects pulled from git. Now we need to create a new project.
After the new project is successfully created, it cannot be run and the above error message is reported. It is suspected that the version of an imported library is too high and the corresponding resources cannot be found.

Solution

Change the version number of 'androidx.appcompat:appcompat' in the build.gradle file under the app module to 1.2.0 to run successfully

Insert image description here
Insert image description here
Insert image description here

Guess you like

Origin blog.csdn.net/Mr_Gaojinchao/article/details/135352035