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

Activity class {com.myapp/com.myapp.MainActivity} does not exist. #12857

Closed
xuho opened this issue Mar 10, 2017 · 4 comments
Closed

Activity class {com.myapp/com.myapp.MainActivity} does not exist. #12857

xuho opened this issue Mar 10, 2017 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@xuho
Copy link

xuho commented Mar 10, 2017

I have created react native app with command: "react-native init myapp --version [email protected]", then I run command "cd myapp && react-native run-android", app was BUILD SUCCESSFUL, but cannot start:
Starting: Intent { cmp=com.myapp/.MainActivity }
Error type 3
Error: Activity class {com.myapp/com.myapp.MainActivity} does not exist.

@hramos
Copy link
Contributor

hramos commented Mar 10, 2017

Hey, thanks for reporting this issue!

It looks like your description is missing some necessary information. Can you please add all the details specified in the template? This is necessary for people to be able to understand and reproduce the issue being reported.

I am going to close this, but feel free to open a new issue with the additional information provided. Thanks!

@hramos hramos closed this as completed Mar 10, 2017
@hengsoheak
Copy link

I got the same problem when I try to run my projects again.
But with previous days it works fine just today, I can not run don't know how.

Environment:
OS: macOS Sierra 10.12.6
Node: 6.11.0
Yarn: Not Found
npm: 5.5.1
Watchman: 4.9.0
Xcode: Xcode 9.0.1 Build version 9A1004
Android Studio: 2.1 AI-143.2915827

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

BUILD SUCCESSFUL

Total time: 12.443 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
/bin/sh: adb: command not found
Starting the app (/Users/sopheak/Library/Android/sdk/platform-tools/adb shell am start -n com.agriculture/com.agriculture.MainActivity...
Starting: Intent { cmp=com.agriculture/.MainActivity }
Error type 3
Error: Activity class {com.agriculture/com.agriculture.MainActivity} does not exist.

@AdamRobertHall
Copy link

I got the same error

Error type 3
Error: Activity class {com.datetimefuture/com.datetimefuture.MainActivity} does not exist.

"react-native": "^0.48.4",
///////////////
react-native init DateFutrueTime
react-native run-android
/////////////// run this shell can see the bug

@romreed
Copy link

romreed commented Mar 3, 2018

@AdamRobertHall
Check whether the following values are same,

package (usually line 2) in /android/app/src/main/AndroidManifest.xml

applicationId (usually line 90) in defaultConfig section of /android/app/build.gradle

Line 1 of /android/app/src/main/java/com/paysack/MainApplication.java

Line 1 of /android/app/src/main/java/com/paysack/MainActivity.java

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

6 participants