我从博览会上被驱逐,并尝试react-native run-android,我收到此错误;
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.org
BUILD FAILED in 14s
这是我的 MainActivity 路径
MyApp\android\app\src\main\java\com\com.example.eg\MainActivity.java
我在我的项目中也遇到了这个问题,原因是,我从博览会中弹出,反转弹出并更改了bundleid
。之后我又被弹出了。
这创建了 2 个不同的MainApplication.java
under app/src/main/java
.
为了解决这个问题,我删除了旧的bundleid文件夹。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)