ConnectyCube / connectycube-reactnative-samples

Chat and Video Chat code samples for React Native, ConnectyCube
https://connectycube.com
Apache License 2.0
124 stars 111 forks source link

Problems building RNChat source code #12

Closed AnnBenavides closed 4 years ago

AnnBenavides commented 4 years ago

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.

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?
DaveLomber commented 4 years ago

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

ccvlad commented 4 years ago

The master was updated

AnnBenavides commented 4 years ago

@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