souvik-ghosh / react-native-create-thumbnail

iOS/Android thumbnail generator with support for both local and remote videos
MIT License
246 stars 105 forks source link

Could not resolve all files for configuration build error #68

Closed remorr25 closed 2 years ago

remorr25 commented 2 years ago

Describe the bug While compile the app getting error Could not resolve all files for configuration ':react-native-create-thumbnail:implementation'.

To Reproduce Steps to reproduce the behavior:

  1. Run the app with latest react native configuration

Version "react": "18.0.0", "react-native": "0.69.1", "react-native-create-thumbnail": ^1.5.1

Expected Results App should be compile and run on device Screen Shot 2022-07-11 at 12 52 45 PM

LucasClaude commented 2 years ago

@remorr25 Did you figure this out?

remorr25 commented 2 years ago

@LucasClaude sorry not yet.

rewdt commented 2 years ago

I'm stuck on the same issue

maugonsal commented 2 years ago

Adding the following into android/build.gradle fixed the issue for me

Credits: https://github.com/leandrosimoes/react-native-android-notification-listener/issues/44#issuecomment-1190310604


subprojects {
    afterEvaluate { subproject ->
        if(subproject['name'] == 'react-native-create-thumbnail'){
            def myAttribute = Attribute.of("com.android.build.api.attributes.BuildTypeAttr", String)
            dependencies.attributesSchema {
                attribute(myAttribute)
            }
            configurations {
                implementation {
                    attributes {
                        attribute(myAttribute, "release")
                    }
                }
            }
        }
    }
}
remorr25 commented 2 years ago

@maugonsal Thanks

fukemy commented 1 year ago

not working to me

shankar24r commented 1 year ago

Unable to compile the project.

Could not resolve all files for configuration ':react-native-create-thumbnail:implementation'.

fukemy commented 1 year ago

yes I got exactly same issues, dont know why

shankar24r commented 1 year ago

Seems Jcenter issue. https://status.gradle.com/ https://github.com/facebook/react-native/issues/35136

Veerasathiya commented 1 year ago

remove jcenter() from android/build.gradle

repositories {
       ...
      // jcenter()
}

allprojects {
    repositories {
        ...
        // jcenter()
    }
}
ahsanmunyr commented 1 year ago

remove jcenter() from android/build.gradle

repositories {
       ...
      // jcenter()
}

allprojects {
    repositories {
        ...
        // jcenter()
    }
}

Perfectly Fine, Thank You @Veerasathiya 👍

ZakirBangash commented 1 year ago

same here non of the above solution worked for me

mcrzx commented 1 year ago

same issue

AhmedAbuelenin commented 1 year ago

@maugonsal This worked for me, thank you. For whom this didn't work him, you should replace first "afterEvaluate", "def myAttribute", "dependencies.attributesSchema" and "configurations" with

subprojects {
    afterEvaluate { subproject ->
        if(subproject['name'] == 'react-native-create-thumbnail'){
            def myAttribute = Attribute.of("com.android.build.api.attributes.BuildTypeAttr", String)
            dependencies.attributesSchema {
                attribute(myAttribute)
            }
            configurations {
                implementation {
                    attributes {
                        attribute(myAttribute, "release")
                    }
                }
            }
        }
    }
}