Skip to content

"cannot call a class as a function" when install via APK ./gradlew assembleDebug #16642

@eggybot

Description

@eggybot

Is this a bug report?

Not sure,

Have you read the Contributing Guidelines?

yes, I already read it.

Environment


Environment:
  OS:  macOS High Sierra 10.13
  Node:  7.9.0
  Yarn:  0.23.3
  npm:  4.2.0
  Watchman:  4.9.0
  Xcode:  Xcode 9.0 Build version 9A235
  Android Studio:  2.3 AI-162.4069837

Packages: (wanted => installed)
  react: 16.0.0-beta.5 => 16.0.0-beta.5
  react-native: 0.49.3 => 0.49.3

  Target Platform: iOS (10.3)

Steps to Reproduce

No steps, needed.

Expected Behavior

when I run this code

react-native bundle --dev false --platform android --entry-file index.js --bundle-output ./android/app/build/intermediates/assets/debug/index.android.bundle --assets-dest ./android/app/src/main/res/ --assets-dest ./android/app/build/intermediates/res/merged/debug
....
cd android/
./gradlew assembleDebug

I should expect a working APK file which I can install on other devices that will run same when I do run this command react-native run-android

Actual Behavior

screenshot_20171102-111748
I got this error when I tried to install it on other devices using the APK, if I connect it with my laptop and it has debugging host, it works fine. Yesterday this process works fine but now this errors keep showing. On my other projects this process seems to be working fine when installing it via generated APK files.

thanks,

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions