Snapchat / camera-kit-react-native

Camera Kit wrapper for React Native
Other
72 stars 7 forks source link

Failed to get Google credentials for GCS connection #1

Open jonra1993 opened 4 months ago

jonra1993 commented 4 months ago

When I try to install this pckage int a new project or run the example I get

how to solve this A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:8.0.1
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:8.0.1
         > Could not get resource 'gcs://snapengine-maven-publish/releases/com/android/tools/build/gradle/8.6/gradle-8.6.pom'.
            > Failed to get Google credentials for GCS connection
   > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.
     Required by:
         project :
      > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0.
         > Could not get resource 'gcs://snapengine-maven-publish/releases/org/jetbrains/kotlin/kotlin-gradle-plugin/1.7.0/kotlin-gradle-plugin-1.7.0.pom'.
            > Failed to get Google credentials for GCS connection

I think it is been caused in build.gradle by

    maven {
        url "gcs://snapengine-maven-publish/releases"
    }

It is shown that GOOGLE_APPLICATION_CREDENTIALS is not defined.

jonra1993 commented 4 months ago

The solution is in this PR https://github.com/Snapchat/camera-kit-react-native/pull/2

jciereszko1 commented 2 weeks ago

Hi, Thanks for reporting this issue and proposing a fix! To minimize the list of changes we prepared a PR with just that update: https://github.com/Snapchat/camera-kit-react-native/pull/5

I hope it's ok with you and it will fix this problem.