Skip to content
This repository has been archived by the owner on Apr 2, 2021. It is now read-only.

Could not find ... #315

Closed
theobouwman opened this issue Nov 8, 2016 · 6 comments
Closed

Could not find ... #315

theobouwman opened this issue Nov 8, 2016 · 6 comments

Comments

@theobouwman
Copy link

theobouwman commented Nov 8, 2016

Versions:

react": 15.3.2
react-native": 0.37.0
react-native-fbsdk": 0.4.0

After going through the setup process of this repo I'm still getting errors.

When executing react-native run-android I'm getting this.

* What went wrong:
A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-fbsdk'.
   > Could not resolve all dependencies for configuration ':react-native-fbsdk:_debugCompile'.
      > Could not find com.android.support:appcompat-v7:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified
      > Could not find com.android.support:appcompat-v7:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.react:react-native:0.37.0
      > Could not find com.android.support:support-v4:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.android:facebook-android-sdk:4.17.0
      > Could not find com.android.support:appcompat-v7:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/appcompat-v7/25.0.0/appcompat-v7-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.android:facebook-android-sdk:4.17.0
      > Could not find com.android.support:cardview-v7:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/cardview-v7/25.0.0/cardview-v7-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.android:facebook-android-sdk:4.17.0
      > Could not find com.android.support:customtabs:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/customtabs/25.0.0/customtabs-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.android:facebook-android-sdk:4.17.0
      > Could not find com.android.support:support-v4:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.react:react-native:0.37.0 > com.android.support:recyclerview-v7:23.0.1
      > Could not find com.android.support:support-v4:25.0.0.
        Searched in the following locations:
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/.m2/repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            https://jcenter.bintray.com/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Development/ReactNative/FBSDKapp/node_modules/react-native/android/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/android/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.pom
            file:/Users/theo/Library/Android/sdk/extras/google/m2repository/com/android/support/support-v4/25.0.0/support-v4-25.0.0.jar
        Required by:
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.react:react-native:0.37.0 > com.facebook.fresco:fresco:0.11.0 > com.facebook.fresco:drawee:0.11.0
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.react:react-native:0.37.0 > com.facebook.fresco:fresco:0.11.0 > com.facebook.fresco:imagepipeline:0.11.0
            FBSDKapp:react-native-fbsdk:unspecified > com.facebook.react:react-native:0.37.0 > com.facebook.fresco:fresco:0.11.0 > com.facebook.fresco:imagepipeline:0.11.0 > com.facebook.fresco:imagepipeline-base:0.11.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 17.99 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment.
Go to https://facebook.github.io/react-native/docs/getting-started.html
and check the Android tab for setup instructions.

I'm probably forgot to do something but I can't find the issue.

@jpapillon
Copy link

@theobouwman You need to update your Android SDK (you can use the Android SDK Manager).

@theobouwman
Copy link
Author

@jpapillon which API level do I need to install in order to let it work on my Nexus 5X (Android 7.0).
I already installed API lever 24 which is for Android 7.0.

Thanks

@shaikhussian
Copy link

@jpapillon still facing even updated the Android sdk
Android SDK Build-tools -25,
Android 7.1.1(API 25)
These are i updated even though i am facing the problem while running the project

@jpapillon
Copy link

@theobouwman @shaikhussian Have you updated the Android Support Repository as well? I'm at revision 39 on my end.

@fabripeco
Copy link

Updating Android Support Repository solves the issue for me, even if I'm using SDK Build-tools 23. Thank you very much @jpapillon!

@theobouwman
Copy link
Author

updating Android Support Repository fixed the problem

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants