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
How to Get Current Buildtype in Android Gradle Configuration
Executing Multiple Asynctask's Parallely
Checking a Checkbox in Listview Makes Other Random Checkboxes Checked Too
How to Stop Other Apps Playing Music from My Current Activity
Taking Screenshot Programmatically Doesnt Capture the Contents of Surfaceview
Activate an Application When a Power Button Is Clicked
Crashlytics Android Sdk - Custom Uncaughtexceptionhandler
How to Correctly Pass Unique Extras to a Pending Intent
How to Implement Image Gallery in Gridview in Android
Trying to Uninstall_Shortcut But Shortcut Won't Go Away
Failed to Connect to Camera Service
Android - Gettargetfragment and Settargetfragment - What Are They Used For
Change Text Color of Selected Item in Spinner
Android: Simulate Wifi in the Emulator
How to Handle Multiple Application Classes in Android
How to Use the Proguard in Android Studio
Occured an Internal_Error When Requestemail from Googlesigninoptions Android