BUILD SUCCESSFUL in 10s
154 actionable tasks: 2 executed, 152 up-to-date
info Connecting to the development server...
info Starting the app on "emulator-5554"...
Starting: Intent { cmp=com.baqala/.MainActivity }
Error type 3
Error: Activity class {com.baqala/com.baqala.MainActivity} does not exist.
제품 맛 또는 변형을 사용하는 경우이 오류가 발생할 수 있습니다. applicationIdSuffix "<YOUR SUFFIX>"
내 프로젝트에는 각 버전이 app / build.gradle에서 applicationIdSuffix를 지정하는 여러 빌드 유형 및 제품 버전이 있습니다. 실행 react-native run-android --variant=<VARIANT>
하면 빌드되지만 에뮬레이터에서 열리지 않습니다. 해결책은 --appIdSuffix '<YOUR SUFFIX>'
실행 명령 에 추가 하는 것입니다.
예를 들면 :
react-native run-android --variant=stagingDebug --appIdSuffix 'staging'
React Native CLI는 앞으로이 문제를 해결할 것입니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다