tariq86 / rn-sip-app

React Native SIP App
66 stars 45 forks source link

I can't run the project #11

Open jroblesg opened 4 years ago

jroblesg commented 4 years ago

You have a running example? please

willnaoosmith commented 4 years ago

Why you can't run the project? What's the error?

boodmer commented 4 years ago

Why you can't run the project? What's the error? when i press a circle in header it appear like this undefined is not an object (evaluating '_this$props.tab')

zal-febrian commented 4 years ago

error on configure react-native-pjsip, i run command ./gradlew clean in android directory but the result is same.

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. (node:11575) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency (Use node --trace-warnings ... to show where the warning was created) Jetifier found 1908 file(s) to forward-jetify. Using 6 workers... info JS server already running. info Installing the app...

Configure project :react-native-pjsip WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.4.0. Android SDK Build Tools 28.0.3 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :app:processDebugManifest FAILED

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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings 40 actionable tasks: 1 executed, 39 up-to-date /Users/chpn/Downloads/rn-sip-app-develop/android/app/src/debug/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.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:7:5-117 to override.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081 /Users/chpn/Downloads/rn-sip-app-develop/android/app/src/debug/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.1] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory). Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:7:5-117 to override.

FAILURE: Build failed with an exception.

BUILD FAILED in 1s

at makeError (/Users/chpn/Downloads/rn-sip-app-develop/node_modules/execa/index.js:174:9)
at /Users/chpn/Downloads/rn-sip-app-develop/node_modules/execa/index.js:278:16
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async runOnAllDevices (/Users/chpn/Downloads/rn-sip-app-develop/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:5)
at async Command.handleAction (/Users/chpn/Downloads/rn-sip-app-develop/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js:186:9)
hai-ru commented 3 years ago

add this line at the end

gradle.properties

android.useAndroidX=true
android.enableJetifier=true