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

native android app Process crashes #1093

Closed
lbutterfly opened this issue Dec 20, 2018 · 3 comments
Closed

native android app Process crashes #1093

lbutterfly opened this issue Dec 20, 2018 · 3 comments

Comments

@lbutterfly
Copy link

lbutterfly commented Dec 20, 2018

For usage help, ask a question on Stack Overflow with the detox tag. The issues section of the project is meant for opening bug reports and enhancement requests of Detox. We use it to automatically track the change log

IMPORTANT: Use search before opening an issue. Duplicate issues will simply be closed.

Description

  1. android app Process crashes after update detox 8.2.3 to 9.1.2.
  2. My app is native app, not an react-native app

Steps to Reproduce

My app is success for detox 8.2.3, Then I follow this Guide
(https://github.com/wix/detox/blob/master/docs/Guide.Migration.md#migrating-from-detox-8xx-to-9xx) update to 9.1.2, And also install react-native use "npm install react-native", But when I command "detox test". app will crash after launch.

which step missing ?

Detox, Node, Device, Xcode and macOS Versions

  • Detox: 9.1.2
  • React Native: 0.55.4
  • Node: v11.0.0
  • Device: Emulator Nexus_6_API_28
  • Xcode: 10.0.0
  • macOS: 10.14

Device and verbose Detox logs

Detox logs:
detox_log.txt

Device logs:
devices_log.txt

12-20 16:31:55.876 15543-15626/com.motherapp.herman_miller_android.debug E/UncaughtException: java.lang.ClassCastException: com.motherapp.herman_miller_android.MainApplication cannot be cast to com.facebook.react.ReactApplication
        at com.wix.detox.ReactNativeSupport.getInstanceManager(ReactNativeSupport.java:65)
        at com.wix.detox.ReactNativeSupport.waitForReactNativeLoad(ReactNativeSupport.java:120)
        at com.wix.detox.ReactNativeCompat.waitForReactNativeLoad(ReactNativeCompat.java:33)
        at com.wix.detox.DetoxManager.start(DetoxManager.java:72)
        at com.wix.detox.Detox$1$1.run(Detox.java:133)
        at android.os.Handler.handleCallback(Handler.java:873)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:193)
        at com.wix.detox.Detox$1.run(Detox.java:136)
        at java.lang.Thread.run(Thread.java:764)
@rotemmiz
Copy link
Member

You are right, this is a real issue. We started removing usage of reflection to react-native APIs. We need to do a better job at only loading react native support classes when react native exists in classpath.

@stale
Copy link

stale bot commented Jan 19, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions.

@LeoNatan
Copy link
Contributor

This is an old issue. If still relevant, please reproduce on a modern version of Detox and open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants