Closed AzharTechversant closed 8 months ago
I have the same issue, it was working fine a few days ago.
same issue !
Same here, whats wrong?
@souvik-ghosh
Same Issue
i think this is due to Jcenter server, they had an issue this morning
Same Issue
Anyone know how long this problem will last?
Same Issue
it works fine for me now
Same issue
Same issue
Encountering this again as well, is this still due to jcenter?
Edit / mine is different:
A problem occurred configuring project ':react-native-create-thumbnail'.
> Could not resolve all files for configuration ':react-native-create-thumbnail:implementation'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :react-native-create-thumbnail
> Cannot choose between the following variants of com.facebook.react:react-native:0.71.0-rc.0:
- debugVariantDefaultRuntimePublication
- releaseVariantDefaultRuntimePublication
All of them match the consumer attributes:
- Variant 'debugVariantDefaultRuntimePublication' capability com.facebook.react:react-native:0.71.0-rc.0:
- Unmatched attributes:
- Provides com.android.build.api.attributes.BuildTypeAttr 'debug' but the consumer didn't ask for it
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'aar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
- Variant 'releaseVariantDefaultRuntimePublication' capability com.facebook.react:react-native:0.71.0-rc.0:
- Unmatched attributes:
- Provides com.android.build.api.attributes.BuildTypeAttr 'release' but the consumer didn't ask for it
- Provides org.gradle.category 'library' but the consumer didn't ask for it
- Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it
- Provides org.gradle.libraryelements 'aar' but the consumer didn't ask for it
- Provides org.gradle.status 'release' but the consumer didn't ask for it
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it
Likely related to this: https://github.com/facebook/react-native/issues/35210
+1
Please update library version to 1.6.3, its working fine for me.
sorry but it doesn't work for us, we are using 1.6.3 version @hardikbhingradiya
I'm having the same problem, does anyone have any news?
I'm using React Native 0.63.4
and I had the same problem when generating the APK. I managed to solve it by adding the following code snippet in my android/build.gradle
:
def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
allprojects {
configurations.all {
resolutionStrategy {
force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
}
}
// ...
}
what worked for me is adding the following to build.gradle inside allprojects-->repositories
exclusiveContent { filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } }
like below
We are upgrading our RN version from 0.69.7 to 0.71.7. Everything seemed fine in iOS. In Android, however, react-native-create-thumbnail gave us errors. We got the following error:
`Build file ‘/XXXXXX/node_modules/react-native-create-thumbnail/android/build.gradle’ line: 115 A problem occurred configuring project ‘:react-native-create-thumbnail’.
Could not resolve all files for configuration ‘:react-native-create-thumbnail:implementation’. Could not find react-native-0.71.0-rc.0-release.aar (com.facebook.react:react-native:0.71.0-rc.0). Searched in the following locations:`
We then tried to apply the recommended fixes above including: 1) exclusiveContent { filter { includeGroup "com.facebook.react" } forRepository { maven { url "$rootDir/../node_modules/react-native/android" } } }
2) def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
allprojects { configurations.all { resolutionStrategy { // Remove this override in 0.66, as a proper fix is included in react-native itself. force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION } }
We still get this type of error:
`A problem occurred configuring project ‘:react-native-create-thumbnail’.
Could not resolve all files for configuration ‘:react-native-create-thumbnail:implementation’. Could not find any matches for com.facebook.react:react-native:+ as no versions of com.facebook.react:react-native are available. Searched in the following locations:
- file:/XXXXXXX/node_modules/react-native/android/com/facebook/react/react-native/maven-metadata.xml Required by: project :react-native-create-thumbnail`
Any suggestions would be helpful.
@bumpingChris this was resolved for the latest versions of RN. Could it be that your app/build.gradle
is incorrectly set up? There are some fairly large changes between the versions you mentioned. See example here.
closing due to inactivity
minSdkVersion = 21 compileSdkVersion = 33 targetSdkVersion = 33 "react-native-create-thumbnail": "^2.0.0",
still getting the same issue
Describe the bug While compile the app getting error * Where: Build file '...../node_modules/react-native-create-thumbnail/android/build.gradle' line: 114
To Reproduce Steps to reproduce the behavior:
Run the app for android with latest react native configuration
Version "react": "18.2.0", "react-native": "0.70.3", "react-native-create-thumbnail": "^1.6.3"
Expected Results![thumbnailnewissue](https://user-images.githubusercontent.com/96411269/198999717-0329c30d-9153-4fca-83ea-d4e14eb49bd0.png)
App should be compile and run on device