-
Notifications
You must be signed in to change notification settings - Fork 12
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
Getting several duplicate class error in modules bcpkix-jdk15on-1.56.0 and pkix-1.51.0 after installing freersap-react-native and building #13
Comments
Hello @roneyyb , Kind regards, |
Hi @roneyyb, It looks like there are two modules (bcpkix-jdk15on-1.56.0, pkix:1.51.0.0) that both contain the AttributeCertificateHolder class from the org.spongycastle.cert package (the latter is indeed from freeRASP). To resolve this error, you need to determine which module you want to use and exclude the other one from the classpath. To exclude the module from freeRASP, navigate to
Let us know if this helped, |
I'm having the same issue, is there are any ongoing fixes for this? |
Hi @AmineKenzup, you have to exclude the conflicting module manually, as explained here. Unfortunately, as there may be conflict with any package that uses the same modules as freeRASP SDK, it is not possible to fix this issue on our side (freeRASP needs to include all its modules in case they aren't included by other packages, and vice versa). Best, |
There are a lot of CVE in Spongy Castle, can you update to last Bouncy Castle version? |
Hello @Neustradamus , we reviewed the issue and decided to remove the Bouncy Castle dependency in the next version of freeRASP. Kind regards, |
Hello @msikyna |
Hello @roneyyb , Kind regards, |
Hello @roneyyb, we removed the BouncyCastle dependency in v3.0.0, which was released yesterday. Updating freeRASP to the latest version should fix the Best, |
Describe the bug
I am using react-native 0.69.9 and project works fine but after installing freersap-react-native and trying to build again after doing configuration I am getting duplicate class error
Execution failed for task ':app:checkDebugDuplicateClasses'.
BUILD FAILED in 26s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: /Users/rajatbothra/Projects/StreakApp/node_modules/react-native-webview/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
FAILURE: Build failed with an exception.
Execution failed for task ':app:checkDebugDuplicateClasses'.
To Reproduce
Installing freersap-react-native on a react-native 0.69.9 version project.
Expected behavior
It should show either the issue mentioned or initialization Success or initialization error
Screenshots
If applicable, add screenshots to help explain your problem.
Please complete the following information:
Additional context
android/build.gradle
buildscript {
ext {
kotlin_version='1.6.10'
buildToolsVersion = "31.0.0"
minSdkVersion = 21
compileSdkVersion = 33
androidXCore = "1.6.0"
targetSdkVersion = 33
if (System.properties['os.arch'] == "aarch64") {
// For M1 Users we need to use the NDK 24 which added support for aarch64
ndkVersion = "24.0.8215888"
} else {
// Otherwise we default to the side-by-side NDK version from AGP.
ndkVersion = "21.4.7075529"
}
}
repositories {
mavenCentral()
google()
}
allprojects {
repositories {
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")
}
mavenCentral {
// We don't want to fetch react-native from Maven Central as there are
// older versions over there.
content {
excludeGroup "com.facebook.react"
}
}
}
The text was updated successfully, but these errors were encountered: