Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Problems building RNChat source code #12

Closed
AnnBenavides opened this issue Oct 8, 2019 · 3 comments
Closed

Problems building RNChat source code #12

AnnBenavides opened this issue Oct 8, 2019 · 3 comments

Comments

@AnnBenavides
Copy link

AnnBenavides commented Oct 8, 2019

I've cloned the master branch today, and try it to build RNChat as you say in the readme, i have troubles and search them here. I did everything mentioned here, and now i have this problem:

> Task :app:processDebugManifest FAILED
C:\<path>\connectycube-reactnative-samples\RNChat\android\app\src\main\AndroidManifest.xml:22:18-91 Error:
        Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
        is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:8:3-70:17 to override.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
        is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
        Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:8:3-70:17 to override.
  • My root build.gradle looks like this:
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    ext {
        buildToolsVersion = "28.0.3"
        minSdkVersion = 16
        compileSdkVersion = 28
        targetSdkVersion = 28
        supportLibVersion = "28.0.0"
    }
    repositories {
        google()
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

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

wrapper {
    gradleVersion = '5.4.1'
    distributionUrl = distributionUrl.replace("bin", "all")
}
  • the gradle-wrapper.properties is:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
  • and package.json is:
{
  "name": "RNVideoChat",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "start:reset": "npm run start --reset-cache",
    "test": "jest",
    "ios": "react-native run-ios",
    "android": "react-native run-android",
    "reinstall": "rm -rf node_modules && npm install",
    "clear": "watchman watch-del-all && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-*"
  },
  "dependencies": {
    "connectycube-reactnative": "^1.7.3",
    "react": "16.8.3",
    "react-native": "0.59.8",
    "react-native-autogrow-textinput": "^5.2.0",
    "react-native-device-info": "^0.26.4",
    "react-native-push-notification": "^3.1.2",
    "react-native-router-flux": "^4.0.6",
    "react-native-set-soft-input-mode": "^1.0.3",
    "react-native-status-bar-height": "^2.2.0",
    "react-native-vector-icons": "^6.3.0",
    "react-redux": "^6.0.1",
    "redux": "^4.0.1",
    "rn-prompt": "^1.0.3"
  },
  "devDependencies": {
    "babel-core": "^7.0.0-bridge.0",
    "babel-jest": "24.1.0",
    "jest": "24.1.0",
    "jetifier": "^1.6.4",
    "metro-react-native-babel-preset": "0.53.0",
    "react-test-renderer": "16.6.3"
  },
  "jest": {
    "preset": "react-native"
  }
}

And with every change, i deleted the node-modules folder, the run npm install and npm run android

can you help me again?

@AnnBenavides AnnBenavides changed the title Problems building source code Problems building RNChat source code Oct 8, 2019
@DaveLomber
Copy link
Collaborator

@ccvlad
Copy link
Contributor

ccvlad commented Oct 22, 2019

The master was updated

@AnnBenavides
Copy link
Author

@AnnBenavides could you please try RN61 branch and let us know https://github.com/ConnectyCube/connectycube-reactnative-samples/tree/RN-upgrade-0.61.1

This completly works

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

No branches or pull requests

3 participants