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
Error: Activity class ... does not exist #14952
Comments
@theobouwman Check whether the following values are same,
|
It looks like the repro steps require adding several other libraries. I wonder if you can provide a minimal repro that shows this is indeed an issue in RN? |
@hramos the Auth0 library requires the MainActivity to have the launchMode as singleTask. Could that be the cause of this bug? |
@theobouwman try adding the following to android/settings.gradle
Mine was missing that line because I was messing around. I assume that means that gradle skips compiling the actual app and just compiles 3rd party stuff eg
|
@thevolcanomanishere saved my life! I've removed that line ( |
I got the same error when adding mutiple build variants to app/build.gradle with different applicationIdSuffix's. According to this unmerged PR, it seems to be a well known RN problem :( |
@jenskuhrjorgensen Thanks that's what caused this error for me. I was using CodePush and had several After restoring it to just |
@MrToph FYI I'm still using different buildTypes with applicationIdSuffix, but I run my Android app using e.g. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
I had the same issues and it turned out that the cause was a previously installed app with the same name that wasn't properly uninstalled. https://medium.com/@thehenrytsai/react-native-troubleshooting-history-c876adda2d67 |
I had the same issues and none of the above fixes worked for me. Here's what did:
NOTE: The app crashed on opening it. The error in the terminal still persists but the app runs on the device (emulator & physical device) |
i am suffering from same issue.please help
|
This helped me. You may have deleted/uninstalled your app, but when you check in your settings/apps, you can see that it's not totally uninstalled. Go to Settings. |
Having the same problem here |
Yes I uninstalled my react-native app on my Android phone and was met with this error. I followed @miakachammy's steps and re-ran |
I was having the same issues and none of the above solutions fixed it and |
My project has multiple build types where each build type specifies react-native run-android --variant=staging --appIdSuffix 'staging' Not sure why it doesn't just honor the |
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.6Then, specify:
Steps to Reproduce
react-native init ExampleProject
yarn add react-native-auth0
and link itreact-native link react-native-auth0
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:I managed to fix this with the following hacks:
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
The text was updated successfully, but these errors were encountered: