Resource Linking Fails on Lstar

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

Resource linking fails on lStar with error

axel8888 thank your sir, yes, I have solved this problem. yes, you are right , when I try solution one again

configurations.all {
resolutionStrategy {
// Java language implementation
force "androidx.core:core:1.6.0"
// Kotlin
force "androidx.core:core-ktx:1.6.0"

}
}

and as you the problem is now in

androidx.appcompat:appcompat:1.4.0-alpha

so I checked the gradle dependencies, yes , even I used

androidx.appcompat:appcompat:1.3.1

but my project shows the version is 1.4.0-alpha. here is my solution

    configurations.all {
resolutionStrategy.eachDependency { details ->
def requested = details.requested

if (requested.group == "androidx.appcompat") {
if (requested.name == "appcompat") {
details.useVersion "1.3.1"
}
}

}
}

and it worked, now my project can build and run correctly, thank you, sir!

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: Resource linking fails on test execution even when nothing has been changed

I've found the issue and I was able to fix it.

The issue was that one of the external libraries the app depends on has a dependency on androidx.core:core-ktx:+ which meant that was always compiling with the latest version. My app is still working on SDK 28, but the latest version of androidx.core:core-ktx has the minimal SDK of 31, which resulted in this conflict.

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.

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'


Related Topics



Leave a reply



Submit