Android resource linking failed ERROR:: AAPT: error: resource android:style/TextAppearance

Running the old project today, an error message is reported

Query data All blog solutions are the same.

Modify build.gradlethe file:

  1. compileSdkVersion Change to 25
  2. buildToolsVersion Modified to 25.4.0,implementation 'com.android.support:appcompat-v7:25.2.1'

But my android studio is 4.4.4, compileSdkVersionwhich cannot be lower than 29. So naturally, the version cannot be lowered.

This error occurs because the build SDK version does not match the support library .

The workaround is simple. Open File–> Project Structure, find the option, and modify it as follows:

If there are multiple modules, modify them all.

Guess you like

Origin blog.csdn.net/x158454996/article/details/125111330