Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot build android (react:native:intercom:unspecified > com.facebook.react:react-native:0.50.3) #153

Closed
mmckinley8 opened this issue Nov 30, 2017 · 1 comment

Comments

@mmckinley8
Copy link

mmckinley8 commented Nov 30, 2017

Just successfully installed on iOS but am receiving the following compilation error on android.

intercom version: 9.0.0
react-native version: 0.50.3

`FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-intercom'.
> Could not resolve all dependencies for configuration ':react-native-intercom:_debugPublishCopy'.
> Could not find com.android.support:appcompat-v7:26.1.0.
Searched in the following locations:
file:/Users/MichaelMcKinley/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.pom
file:/Users/MichaelMcKinley/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
file:/Users/MichaelMcKinley/Development/movespring/mobile/android/sdk-manager/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
Required by:
MoveSpring:react-native-intercom:unspecified > com.facebook.react:react-native:0.50.3
> Could not find com.android.support:design:26.1.0.
Searched in the following locations:
....
file:/Users/MichaelMcKinley/Library/Android/sdk/extras/android/m2repository/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
file:/Users/MichaelMcKinley/Development/movespring/mobile/android/sdk-manager/com/android/support/appcompat-v7/26.1.0/appcompat-v7-26.1.0.jar
Required by:
MoveSpring:react-native-intercom:unspecified > io.intercom.android:intercom-sdk-base:4.1.4 > com.intercom:android-composer-gallery:1.3.1

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

BUILD FAILED`

@mmckinley8 mmckinley8 changed the title Cannot build android Cannot build android (react:native:intercom:unspecified > com.facebook.react:react-native:0.50.3) Nov 30, 2017
@HilSny
Copy link

HilSny commented Dec 1, 2017

You can fix this issue by adding to android/build.gradle:

 maven {
          url "https://maven.google.com"
        }

Like so:

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

You also need to be compiling for 26 and have your build tools at 26.0.1:

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

No branches or pull requests

3 participants