I try to run application on android emulator but it failed.
I run react-native run-android
, BUILD
is SUCCESSFUL but I get error type 3 and I don't see that it installed on emulator.
This part of what I get when I run "react-native run-android" in cmd:
Installed on 1 device.
BUILD SUCCESSFUL
Total time: 2 mins 24.714 secs
Starting the app on ***** (...\Android\sdk/platform-tools/adb -s **** shell am start -n app/.MainActivity)...
Starting: Intent { cmp=app/.MainActivity }
Error type 3
Error: Activity class {app/app.MainActivity} does not exist.
Step 1 : Check whether the following files have the same package name say "com.companyName.appName":
1. package (usually line 2) in /android/app/src/main/AndroidManifest.xml
2. applicationId (usually line 90) in defaultConfig section of /android/app/build.gradle
3. Line 1 of /android/app/src/main/java/com/paysack/MainApplication.java
4. Line 1 of /android/app/src/main/java/com/paysack/MainActivity.java
Step 2 :
react-native run-android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With