Open emclab opened 1 year ago
The latest gradle version is 7.5.1 and the module used ver 6.1.1. Please bump up the gradle version and the SDK for the module as you can.
in build.gradle for rn-alioss, add the following at the end solved my problem:
configurations.all {
resolutionStrategy {
force 'androidx.core:core:1.6.0'
force 'androidx.core:core-ktx:1.6.0'
}
}
在 rn-alioss 的 build.gradle 中,在最后添加以下内容解决了我的问题:
configurations.all { resolutionStrategy { force 'androidx.core:core:1.6.0' force 'androidx.core:core-ktx:1.6.0' } }
@emclab Thanks for your resolve if you can pls give me pr
When building android release with
./gradlew assembleRelease
for React Native 0.70.1/rn-alioss 0.25/gradle on MacOS Monetary/gradle 7.5.1, the build failed with the following error:And more:
npx react-native run-android
runs successfully. Here is the output ofnpx react-native info
:After deleting all under ./gradle and node-modules, and ./gradlew clean, yarn install again. But the error remains the same. Build on React Native 0.68.2 was successful.