Could not find com.redmadrobot:input-mask-android:6.0.0 error
See original GitHub issueHello,
When I installed the react-native-text-input-mask package on new React Native project and try to run on Android, I’m getting the following error.
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.redmadrobot:input-mask-android:6.0.0.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
- file:/C:/Users/username/.m2/repository/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
- file:/C:/dosyalar/mobile/Test/node_modules/react-native/android/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
- file:/C:/dosyalar/mobile/Test/node_modules/jsc-android/dist/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
- https://dl.google.com/dl/android/maven2/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
- https://www.jitpack.io/com/redmadrobot/input-mask-android/6.0.0/input-mask-android-6.0.0.pom
Required by:
project :app > project :react-native-text-input-mask
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 7s
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:9
Top Results From Across the Web
Could not find com.android.tools.build:gradle:7.3.3. error ...
The "com.android.tools.build:gradle:$version" is what we called Android Gradle Plugin(AGP), its latest stable version is 7.0.4 (until 1st ...
Read more >How to fix "Could not find com.android.tools.build.gradle" error ...
A quick fix is given for error " Could not find com.android.tools.build.gradle" in android studio#build#gradle#AndroidStudio# error.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, this is due to the removal of
jcenter()
from react-native v0.65+ tomavenCentra()
. Since this package uses an implementation called Input Mask Android fromjcenter
react-native can’t find the repo anymore. You could just addjcenter()
back to yourandroid/build.gradle
file as a workaround untilInput Mask Android
moves tomavenCentral
repository.Like this:
Thanks @mccooll it worked for me.
I’m using react native 0.66. And this patch worked for me