Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find io.github.novacrypto:BIP39:2019.01.27 #47

Open
ayush-leap opened this issue Jul 24, 2024 · 1 comment
Open

Could not find io.github.novacrypto:BIP39:2019.01.27 #47

ayush-leap opened this issue Jul 24, 2024 · 1 comment

Comments

@ayush-leap
Copy link

ayush-leap commented Jul 24, 2024

We're using this library in our react-native app. While building the app, we recently encountered following issue described below.
It was resolved after adding jcenter() in repositories as this library only seems to be available there only (refer this)

Since jcenter is deprecated & not recommended to use, is there any other repository from where we can fetch this library during build time or any long term fix for the same?

   > Could not find io.github.novacrypto:BIP39:2019.01.27.
     Searched in the following locations:
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
6 actionable tasks: 6 executed
       - https://repo.maven.apache.org/maven2/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - file:/home/runner/.m2/repository/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - file:/home/runner/work/leap-cosmos-mobile/leap-cosmos-mobile/node_modules/react-native/android/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - file:/home/runner/work/leap-cosmos-mobile/leap-cosmos-mobile/node_modules/jsc-android/dist/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - file:/home/runner/work/leap-cosmos-mobile/leap-cosmos-mobile/node_modules/detox/Detox-android/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - https://dl.google.com/dl/android/maven2/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - https://www.jitpack.io/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - https://maven.google.com/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
       - https://plugins.gradle.org/m2/io/github/novacrypto/BIP39/2019.01.27/BIP39-2019.01.27.pom
     Required by:
         project :app

Also sharing build.gradle below for reference.

build.gradle (without jcenter)

buildscript {
    ...
    repositories {
        google()
        maven {
            url 'https://maven.fabric.io/public'
        }
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.1.3")
        classpath("com.facebook.react:react-native-gradle-plugin")
        classpath("de.undercouch:gradle-download-task:5.0.1")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
        classpath("com.google.gms:google-services:4.3.15")
        classpath 'io.fabric.tools:gradle:1.28.1'
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
    }
}

allprojects {
    repositories {
        mavenCentral()
        mavenLocal()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url("$rootDir/../node_modules/react-native/android")
        }
        maven {
            // Android JSC is installed from npm
            url("$rootDir/../node_modules/jsc-android/dist")
        }
        maven {
            url("$rootDir/../node_modules/detox/Detox-android")
        }
        mavenCentral {
            // We don't want to fetch react-native from Maven Central as there are
            // older versions over there.
            content {
                excludeGroup "com.facebook.react"
            }
        }
        google()
        maven { url 'https://www.jitpack.io' }
        maven {
            url 'https://maven.google.com'
        }
        gradlePluginPortal()
    }
    configurations.all {
        resolutionStrategy {
            // Remove this override in 0.65+, as a proper fix is included in react-native itself.
            force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
        }
        exclude module:'bcprov-jdk15on'
        
    }
}
...

@ayush-leap
Copy link
Author

Similar to #43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant