Closed thechaudharysab closed 3 months ago
hi @thechaudharysab thanks for reaching out!
please make sure you added our native repo under AllProjects
as follows-
allprojects {
repositories {
maven {
url "https://software.mobile.pendo.io/artifactory/androidx-release"
}
mavenCentral()
}
}
Please let us know if this has solved your issue!
@randmaayan thank you for your quick response.
I'm using the latest version of Android Studio i.e. Android Studio Koala | 2024.1.1 Patch 1 so I don't have allprojects
in my android/build.gradle
file (as seen in the screenshot below)
Do I need to do something in settings.gradle
instead?
Please add the following in your setting gradle - (taken from https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:centralized-repository-declaration)
dependencyResolutionManagement { repositoriesMode = RepositoriesMode.PREFER_SETTINGS repositories { maven { url "https://software.mobile.pendo.io/artifactory/androidx-release" } } }
Adding it like below in settings.gradle
doesn't show the particular error, but then the other dependencies starts to throw error like I have react-native-create-thumbnail
(screenshot attached), I tried on another project as well and got the same error for react-native vision-camera
.
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
maven { url "https://software.mobile.pendo.io/artifactory/androidx-release" }
}
}
So, I'm still resolving these other errors that are raised and might or might not use the above suggested solution. If you think this is it for this particular issue feel free to close it.
For me what works for PendoSDK v3.3.0 is in android/build.gradle
adding:
allprojects {
repositories {
maven {
url "https://software.mobile.pendo.io/artifactory/androidx-release"
}
mavenCentral()
}
}
Here is the screenshot of the file:
Platform + Version Android using react-native v0.73.6.
The only version that is considered "behind" as per this ReadME would be
kotlinVersion
in my case but upgrading it also doesn't make the error go away.SDK Version 3.3.0+
Framework React Native using React Navigation,
Describe the bug
When I'm running the app from Android Studio it fails with this error:
The details of this are:
To Reproduce Steps to reproduce the behavior:
Installed
yarn add rn-pendo-sdk
Added the following in
android/build.gradle
underrepositories {...
abovegoogle()
andmavenCentral()
.I added the following in
metro.congif.js
even though I'm only going to use in-app guide and not analytics.After that added
init
code on JS side.Expected behavior It should run the app normally.
Logs N/A
Sample Code N/A
Additional context I'm using react-navigation so I have implemented it as
PendoNavigationContainer = WithPendoReactNavigation(NavigationContainer);
and for initialisation