Jobeso / react-native-whatsapp-stickers

Integrate sticker packs for WhatsApp with your react-native app
Other
81 stars 30 forks source link

android app debug crash after run in debug mode #8

Closed yoandypv closed 5 years ago

yoandypv commented 5 years ago

Environment

Run react-native info in your terminal and paste its contents here.

React Native Environment Info:
System:
OS: Linux 4.4 Ubuntu 16.04.2 LTS (Xenial Xerus)
CPU: (4) x64 Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz
Memory: 1.06 GB / 5.73 GB
Shell: 4.3.46 - /bin/bash
Binaries:
Node: 8.9.4 - /usr/bin/node
Yarn: yarn install v0.27.5
[1/4] Resolving packages...
success Already up-to-date.
Done in 7.24s. - /usr/bin/yarn
npm: 6.4.1 - /usr/bin/npm
SDKs:
Android SDK:
API Levels: 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 3, 4, 7, 8, 9
Build Tools: 17.0.0, 18.0.1, 18.1.0, 18.1.1, 19.0.0, 19.0.1, 19.0.2, 19.0.3, 19.1.0, 20.0.0, 21.0.0, 21.0.1, 21.0.2, 21.1.0, 21.1.1, 21.1.2, 22.0.1, 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.1, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.0, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.0, 28.0.3
System Images: android-10 | Intel x86 Atom, android-14 | ARM EABI v7a, android-15 | Intel x86 Atom, android-16 | Intel x86 Atom, android-16 | Google APIs Intel x86 Atom, android-17 | Intel x86 Atom, android-18 | Intel x86 Atom, android-19 | Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-20 | Android Wear Intel x86 Atom, android-21 | Intel x86 Atom, android-22 | Intel x86 Atom, android-23 | Intel x86 Atom, android-24 | Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-26 | Android Wear Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-27 | Android TV Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-P | Google Play Intel x86 Atom_64
npmPackages:
react: 16.6.1 => 16.6.1 
react-native: 0.57.7 => 0.57.7 
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-rename: 2.2.2
react-native: 0.56.0

Description

He, after create my app with react-native init rnStickers and try react-native run-android (after install react-native-whatsapp-stickers && react-native link) the app try install in emulator, but aftet install successfully when try open crash. In this point the App.js doesn't have any particular code, the code in App.js is default code.

Here my package.json:

{
"name": "rnStickers",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.6.1",
"react-native": "0.57.7",
"react-native-whatsapp-stickers": "^1.2.0"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.2",
"react-test-renderer": "16.6.1"
},
"jest": {
"preset": "react-native"
}
}

The emulator is Android 7.1 (Genymotion) and the unique change in build.gradle is minSdkVersion = 19 that i set to 19.

Please, any idea of why crash ?

Jobeso commented 5 years ago

Hey @yoandypv, you can use adb logcat to get error messages for Android native code or use Android Studio's Debug Mode. Moreover, I edited your commend in terms of formatting. Please take a look at formatting on github to present information in issues and comments better.

To your issue: This behaviour normally occurs when there is no contents.json or the contents.json is corrupted. Please refer to the README integration section for the correct setup.

To be able to help you further I would need to see the error message you get in example with the above provided methods. It's easier to use Android Studio in debug mode because adb logcat shows you the raw output and you need to filter it.

Jobeso commented 5 years ago

Closing this due to inactivity for now. Feel free to open it again anytime.