question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

installation fails: Could not find com.android.support:support-annotations:27.1.0.

See original GitHub issue

After I installed react-native-ble-plx and ran “react-native run-android” I get the following error. Do I have to upgrade “react-native” currently (0.52.0)? I tried adding dependency to build.gradle for “com.android.support:support-v4:23.0.1” but without success.

Thanks for any help!

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find com.android.support:appcompat-v4:23.0.1.
     Searched in the following locations:
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v4/23.0.1/appcompat-v4-23.0.1.pom
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v4/23.0.1/appcompat-v4-23.0.1.jar
         file:/Users/b9179/ws/wirt/android/sdk-manager/com/android/support/appcompat-v4/23.0.1/appcompat-v4-23.0.1.jar
     Required by:
         wirt:app:unspecified
   > Could not find com.android.support:support-annotations:27.1.0.
     Searched in the following locations:
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.pom
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar
         file:/Users/b9179/ws/wirt/android/sdk-manager/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar
     Required by:
         wirt:app:unspecified > wirt:react-native-ble-plx:unspecified > com.polidea.rxandroidble:rxandroidble:1.6.0
   > Could not find com.android.support:support-annotations:27.1.0.
     Searched in the following locations:
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.pom
         file:/Users/b9179/Library/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar
         file:/Users/b9179/ws/wirt/android/sdk-manager/com/android/support/support-annotations/27.1.0/support-annotations-27.1.0.jar
     Required by:
         wirt:app:unspecified > com.android.support:appcompat-v7:23.0.1 > com.android.support:support-v4:23.0.1

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
axlidercommented, Aug 8, 2018

This setup fixed it:

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven { url 'https://maven.google.com' }
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}
0reactions
artharecommented, Sep 27, 2018

Alternative solution: Download the .jar and .pom from https://mvnrepository.com/artifact/com.android.support/support-annotations/27.1.0 and put them in the directory it says it is hunting for.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find com.android.support:support-annotations:27.1 ...
After I installed react-native-ble-plx and ran "react-native run-android" I get the following error. Do I have to upgrade "react-native" ...
Read more >
Could not find com.android.support:support-annotations:26.1.0
I opened Android SDK Manager, but could not find Android Support Repository to install. How can I fix this problem? Here's my app...
Read more >
How to Install Android Studio IDE & SDK and Get Started with ...
If everything fails, select "File" menu ⇒ "Invalidate Caches / Restart..." ⇒ and wait ... Cannot find "AVD manager" in the "Tool" menu:...
Read more >
Troubleshooting Omnibus GitLab installation issues
Failed to modify kernel parameters with sysctl. If sysctl cannot modify the kernel parameters you could possibly get an error with the following...
Read more >
Xamarin.Android 9.4 release notes - Microsoft Learn
ListenableFuture not found" could cause the build to fail during the _CompileJava target when using certain libraries like Xamarin.Google.Guava.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found