Open aprilmintacpineda opened 3 years ago
Same here, could you please change the version of androidx.core:core-ktx
? My app is not building because of this
As a workaround, in your android/app/build.gradle
add the following block before android {}
block.
configurations.all {
resolutionStrategy { force 'androidx.core:core-ktx:1.7.0-alpha01' }
}
@aprilmintacpineda I did it and it is still failing when trying to build my pipeline.
This is the error that my CI is throwing, I tried to globally change the resolutionStrategy to accept only alpha01 and 1.6.0 versions but it didn't work.
This is the error that my CI is throwing, I tried to globally change the resolutionStrategy to accept only alpha01 and 1.6.0 versions but it didn't work.
I think that error is not related to this, try building in android studio so you can see more details.
If I build in android studio or locally I have to change the build.gradle of react-native-camera-kit to implementation "androidx.core:core-ktx:1.6.0" instead of implementation "androidx.core:core-ktx:+" and then it works like a charm. Meanwhile in my CI workflow I can't change the dependency implementation of the androidx.core, so it fails... Tried to globally change the dependency implementation but didn't work
This broke multiple projects for me as well. Adding the following snippet at the top of my app/build.gradle solves it:
configurations.all {
resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' }
}
This broke multiple projects for me as well. Adding the following snippet at the top of my app/build.gradle solves it:
configurations.all { resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' } }
Apparently it solves it locally, but when you're building to a CI/CD pipeline, it keeps failing
This broke multiple projects for me as well. Adding the following snippet at the top of my app/build.gradle solves it:
configurations.all { resolutionStrategy { force 'androidx.core:core-ktx:1.6.0' } }
Apparently it solves it locally, but when you're building to a CI/CD pipeline, it keeps failing
Are you sure this isn't a caching problem
there is a workaround for this I upgraded my versions to 31 and its done compileSdkVersion = 31 targetSdkVersion = 31 P.S : Nothing else worked for me.
Issue Description
a new version of
androidx.core:core-ktx
has just been released last September 1. The new version hastargetSdkVersion: 31
. When I tried to run my android app I got error message:This is because
implementation "androidx.core:core-ktx:+"
will install the latest release even though it may not yet be compatible with some other dependencies.https://androidx.tech/artifacts/core/core-ktx/1.7.0-alpha02
Steps to Reproduce / Code Snippets / Screenshots
N/A
Environment