Error: Activity class does not exist & Could not find dependency com.facebook.react:react-native:0.78.0 #49804
Labels
Needs: Attention
Issues where the author has responded to feedback.
Needs: Repro
This issue could be improved with a clear list of steps to reproduce the issue.
Description
Hello,
I'm experiencing two issues when trying to run my React Native app on Android. Here are the details:
Issue 1: Activity class does not exist
When I execute npx react-native run-android, I get the following error:
info Starting the app on "RZ8W90J1ZZE"... Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.synergys/.MainActivity } Error type 3 Error: Activity class {com.synergys/com.synergys.MainActivity} does not exist.
Issue 2: Dependency not found
When I try to build the app in Android Studio, I get this error:
`Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Possible solution:
`
Steps to reproduce
1- Verified that the React Native version in package.json is 0.78.0.
2- Added the necessary repositories in android/build.gradle:
allprojects { repositories { mavenCentral() google() maven { url 'https://repo.maven.apache.org/maven2/' } maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } } }
3- Ran the following commands to clean and rebuild:
4- Verified that MainActivity.java exists in android/app/src/main/java/com/synergys/.
React Native Version
0.78.0
Affected Platforms
Build - Windows
Output of
npx @react-native-community/cli info
Stacktrace or Logs
Reproducer
https://github.com/meriem-majdoul/Siamtec
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: