react-native-getui
react-native-getui copied to clipboard
yarn android 报错
react-native:"0.71.4" gradle:"7.5.1" react-native-getui:"1.1.44"
android/app/src/debug/AndroidManifest.xml application配置如下:
<application
android:usesCleartextTraffic="true"
tools:targetApi="28"
tools:ignore="GoogleAppIndexingWarning">
<meta-data android:exported="true" tools:replace="android:value" android:name="GETUI_APPID" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="OPPOPUSH_APPKEY" android:value="5NANKP8hVpA7ALfBGUn0e7"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="OPPOPUSH_APPSECRET" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="MEIZUPUSH_APPID" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="MEIZUPUSH_APPKEY" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="com.huawei.hms.client.appid" android:value="C101545375"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="MIPUSH_APPID" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="MIPUSH_APPKEY" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="com.vivo.push.api_key" android:value="piqxlG9wtk95lNOkd9szK6"/>
<meta-data android:exported="true" tools:replace="android:value" android:name="com.vivo.push.app_id" android:value="piqxlG9wtk95lNOkd9szK6"/>
</application>
按照 说明按照后 yarn android 报错
android/app/src/debug/AndroidManifest.xml:26:9-37:20 Error:
android:exported needs to be explicitly specified for element <receiver#com.huawei.hms.support.api.push.PushMsgReceiver>. Apps targeting Android 12 and higher are required to specify an explicit value for android:exported
when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
不知道是不是 依赖的 com.huawei.hms 5.3.0.301 这个版本有错,希望提供修复的方式,谢谢