max-prokopenko / react-native-link-preview

Get link metadata to show url preview in React Native.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could not find io.github.ponnamkarthik:richlinkpreview:1.0.9.

jamesholcomb opened this issue · comments

Seems to be a problem resolving richlinkpreview in RN 0.71

android/build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        // googlePlayServicesVersion = "18.+"
        buildToolsVersion = "33.0.0"
        minSdkVersion = 23
        compileSdkVersion = 33
        targetSdkVersion = 33
        supportLibVersion = "28.0.0"
        androidMapsUtilsVersion = "0.5+"
        kotlinVersion = "1.5.20"
        ndkVersion = "23.1.7779620"
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.3.1")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("com.google.gms:google-services:4.3.10")
        classpath("de.undercouch:gradle-download-task:5.0.1")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
        classpath("io.sentry:sentry-android-gradle-plugin:3.4.2")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
    repositories {
        google()
        mavenCentral()
        jcenter()
    }
}

npx react-native info

System:
    OS: macOS 12.6.6
    CPU: (10) arm64 Apple M1 Max
    Memory: 99.58 MB / 32.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 18.16.0 - ~/.nvm/versions/node/v18.16.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v18.16.0/bin/yarn
    npm: 9.5.1 - ~/.nvm/versions/node/v18.16.0/bin/npm
    Watchman: 2023.05.22.00 - /opt/homebrew/bin/watchman
  Managers:
    CocoaPods: 1.12.1 - /opt/homebrew/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1
    Android SDK: Not Found
  IDEs:
    Android Studio: 2022.1 AI-221.6008.13.2211.9477386
    Xcode: 14.2/14C18 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.17 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 18.2.0 => 18.2.0
    react-native: 0.71.11 => 0.71.11
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

yarn android

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:processDebugResources'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not find io.github.ponnamkarthik:richlinkpreview:1.0.9.
     Searched in the following locations:
       - https://oss.sonatype.org/content/repositories/snapshots/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
       - https://repo.maven.apache.org/maven2/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
       - file:/Users/jamesholcomb/code/ra/node_modules/jsc-android/dist/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
       - https://dl.google.com/dl/android/maven2/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
       - https://www.jitpack.io/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
       - file:/Users/jamesholcomb/code/ra/node_modules/@notifee/react-native/android/libs/io/github/ponnamkarthik/richlinkpreview/1.0.9/richlinkpreview-1.0.9.pom
     Required by:
         project :app > project :lowkey_react-native-link-preview

Thanks for reporting! I'll check

you can change
implementation "io.github.ponnamkarthik:richlinkpreview:1.0.9"
to
implementation 'com.github.ponnamkarthik:RichLinkPreview:fffd56b0d7'

Check this in https://www.jitpack.io/#ponnamkarthik/RichLinkPreview/fffd56b0d7

any enhancement on this? it's also found in RN 0.70.5 but don't have any fortune with @tdvuanh 's solution

i ended up switching to my fork of the flyerhq repo.

https://github.com/jamesholcomb/react-native-link-preview

@jamesholcomb I'll take a look at it thank you!

Hi, Any update on this issue getting same error in react-native:73