Message "Error: Resource Android:Attr/Lstar Not Found"

Message 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.

Resource linking fails on lStar

Go to your package.json file and delete as many dependencies as you can until the project builds successfully. Then start adding back the dependencies one by one to detect which ones have troubles.

Then you can manually patch those dependencies by acceding them on node_modules/[dependencie]/android/build.gradle and setting androidx.core:core-ktx: or androidx.core:core: to a specific version (1.6.0 in my case).

Android Build Error: lStar not found...

I managed to fix this by upgrading compileSdk to 31 and kotlin gradle plugin to 1.5.10

compileSdk = 31

classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10'

Resource linking fails on lStar

Go to your package.json file and delete as many dependencies as you can until the project builds successfully. Then start adding back the dependencies one by one to detect which ones have troubles.

Then you can manually patch those dependencies by acceding them on node_modules/[dependencie]/android/build.gradle and setting androidx.core:core-ktx: or androidx.core:core: to a specific version (1.6.0 in my case).



Related Topics



Leave a reply



Submit