报错信息
* What went wrong:
Execution failed for task ':app:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
> Android resource linking failed
aapt2.exe E 09-01 19:44:55 14644 17828 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2.exe E 09-01 19:44:55 14644 17828 ApkAssets.cpp:149] Failed to load resources table in APK 'D:\sdk\platforms\android-35\android.jar'.
error: failed to load include path D:\sdk\platforms\android-35\android.jar.
Execution failed for task ':app_group_directory:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:\BlackProject\build\app_group_directory\intermediates\merged_res\release\values\values.xml:194: AAPT: error: resource android:attr/lStar not found.
Using the answer from here Update compileSdkVersion and targetSdkVersion to 31
And add this code snippet in your android/build.gradle file at the very end.
configurations.all {
resolutionStrategy {
force 'androidx.core:core-ktx:1.6.0'
}
}
Just recently the original author of audioplayers package fixed this issue in his recent PR. It has been fixed in audioplayers version 0.20.1, so if your issue is related to audioplayers, do upgrade.