React-Native productFlavors (Error type 3: Activity class does not exist)

前端 未结 6 2402
粉色の甜心
粉色の甜心 2021-02-20 06:50

I want to use 2 productFlavors for my Android App: live and staging.

In app/build.grandle I defined them like this: <

6条回答
  •  野性不改
    2021-02-20 07:16

    Cause you change the applicationId in the productFlavors, react-native-cli can't recognize it. To fix, just add your changed appId when run start command

    react-native run-android --variant=staging --appId com.some.id.staging
    

提交回复
热议问题