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

Init apps and crash #17

Open
hai-ru opened this issue Oct 11, 2020 · 1 comment
Open

Init apps and crash #17

hai-ru opened this issue Oct 11, 2020 · 1 comment

Comments

@hai-ru
Copy link

hai-ru commented Oct 11, 2020

I succed to install and npm run android, But after bundled and runing apps, its always force close and crash whitout message.

Steps to reproduce the behavior:

  1. clone project
  2. npm install & after that npm audit fix for fixing vulnarable package.
  3. add below code at the end line in gradle.properties for remove androidmanifest error
android.useAndroidX=true
android.enableJetifier=true
  1. change /android/app/build.gradle applicationId, its incorect. so MainActivity not runing correctly on Apps
....
 defaultConfig {
        applicationId "com.tariq86.rnsip"
......
  1. runing the apps with npm run android or npx react-native run-android

Expected behavior
I hope the can runing properly like a normal apps, so I can test how is it sip working in react native.

Desktop :

  • OS: macOS
  • Version HighSierra

Smartphone:

  • Device: Android emulator
  • OS: Android Version 8.0.0
@dinahapuque
Copy link

dinahapuque commented Nov 11, 2020

There are other places where "com.tariq86.rnsip" is incorrect.
You have to change these places below to make it work.

  1. android/app/build.gradle
    defaultConfig {
    applicationId "com.tariq86.rnsip"
    }

  2. android/app/src/main/java/com/app_name/MainActivity.java first line:
    package com.tariq86.rnsip;

  3. android/app/src/main/java/com/app_name/MainApplication.java first line:
    package com.tariq86.rnsip;

  4. android/app/src/main/AndroidManifest.xml
    package="com.tariq86.rnsip"

When I made these changes, I could compile on Android without crashing on init.

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

2 participants