Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29598

How do I resolve 'You need to have MainApplication in your project' in React native run-android

$
0
0

I ejected from expo, and trying react-native run-android, I'm getting this error;

FAILURE: Build failed with an exception.* Where:Script 'C:\Users\simil\OneDrive\Documents\Codes\react-native\expo\doc\node_modules\react-native-unimodules\gradle.groovy' line: 81* What went wrong:A problem occurred evaluating project ':app'.> You need to have MainApplication in your project* Try:Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 14s

This is my MainActivity path

MyApp\android\app\src\main\java\com\com.example.eg\MainActivity.java


Viewing all articles
Browse latest Browse all 29598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>