-
Notifications
You must be signed in to change notification settings - Fork 24.8k
Closed
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.
Description
Is this a bug report?
Yes
Have you read the Bugs section of the Contributing to React Native Guide?
Yes
Environment
react-native -v
: 0.45 & 0.46.1node -v
: v6.9.1npm -v
: 3.10.8yarn --version
(if you use Yarn): 0.17.6
Then, specify:
- Target Platform (e.g. iOS, Android): Android
- Development Operating System (e.g. macOS Sierra, Windows 10): macOS Sierra
Steps to Reproduce
- Create a new react-native project using
react-native init ExampleProject
- Add auth0 with
yarn add react-native-auth0
and link itreact-native link react-native-auth0
- And configure the Android project: https://github.com/auth0/react-native-auth0#configuration
- Add Redux, React Navigation and a few other JS libraries.
Expected Behavior
App should run without any kind of errors.
Actual Behavior
When I want to run the app with react-native run-android
after writing some code and adding logic without touching the native Java code and with a successful build, I get this error:
BUILD SUCCESSFUL
Total time: 10.072 secs
Running adb -s 0259749fb8c21037 reverse tcp:8081 tcp:8081
Starting the app on 0259749fb8c21037 (adb -s 0259749fb8c21037 shell am start -n com.woodyapplication/com.woodyapplication.MainActivity)...
Starting: Intent { cmp=com.woodyapplication/.MainActivity }
Error type 3
Error: Activity class {com.woodyapplication/com.woodyapplication.MainActivity} does not exist.
I managed to fix this with the following hacks:
- creating a new project and copy the JS code over (which is not a solution)
- replace the package name
com.woodyapplication
withcom.woody.application
(or something else). This fixes it for a few runs but then the error message appears again.
I've tested this with RN 0.45 and RN 0.46.1 the bug appears on both versions
Metadata
Metadata
Assignees
Labels
StaleThere has been a lack of activity on this issue and it may be closed soon.There has been a lack of activity on this issue and it may be closed soon.