react-native-notification-banner
react-native-notification-banner copied to clipboard
Android: Could not find com.tapadoo.android:alerter:2.0.6.
Bug Report
Can't get android to build the following error is thrown when building the app:
Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.tapadoo.android:alerter:2.0.6.
Searched in the following locations:
Environment
"react": "17.0.2" "react-native": "0.66.4" Platform(s) (iOS, Android, or both?): Android "react-native-notification-banner": "^2.0.0"
@AdamLee321: Thanks for raising the issue.
Have you added the below snippet to your app build.gradle file?
Please add below snippet into your app build.gradle
allprojects { repositories { maven { url 'https://jitpack.io' } } }
Thanks,
</ Pranav >
Not working even though I have added it to the build.gradle file. This is how my file looks like:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = "33.0.0"
minSdkVersion = 21
compileSdkVersion = 33
targetSdkVersion = 33
supportLibVersion = "28.0.0"
playServicesVersion = "18.1.0" // or find latest version
androidMapsUtilsVersion = "3.3.0"
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "23.1.7779620"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
allprojects { repositories { maven { url 'https://jitpack.io' } } }
+1