我有一个Reaction原生应用程序,我正试图通过Snow运行它.以下是我正在try 运行的两个脚本.
第一个脚本成功安装了应用程序,我必须从模拟器手动打开它.然而,第二个脚本应该使用Metro Builder安装和启动应用程序,但它会出现错误
"and": "cd android && ./gradlew installDevDebug",
"android": "react-native run-android --mode=DevDebug",
我的build.gradle上有这些细节
flavorDimensions ("environment")
productFlavors {
dev {
dimension "environment"
applicationIdSuffix ".dev"
}
sandbox {
dimension "environment"
applicationIdSuffix ".sandbox"
}
staging {
dimension "environment"
applicationIdSuffix ".staging"
}
prod {
dimension "environment"
}
}
我得到的错误是
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.example.app/.MainActivity }
Error type 3
Error: Activity class {com.example.app/com.example.app.MainActivity} does not exist.
为什么Yarn 安卓系统不能工作?