上传了APK或Android应用程序bundle,该bundle具有活动、活动别名、服务或带有意图过滤器的广播接收器



您上传了一个APK或Android应用程序捆绑包,该捆绑包具有活动、活动别名、服务或带有意向过滤器的广播接收器,但没有设置"Android:exported"属性。此文件无法安装在Android 12或更高版本上。请参阅:developer.android.com/about/versions/12/abehavior-changes-12#exported

我正在使用React Native。

收到了这个错误,并按照android文档的建议进行了更新,但仍然收到了相同的错误。

在我的情况下,我有两个android Manifest,并添加了android:export="真">到所有AndroidManifest仍然得到错误

因此,正如中所建议的https://stackoverflow.com/a/70957174下载并安装一个模拟器与安卓12获得位置我还没有添加安卓:导出可以查看,但

我收到这个错误

Failed parse during installPackageLI: /data/app/vmdl1381469782.tmp/base.apk (at Binary XML file line #216):
com.wix.reactnativenotifications.fcm.FcmInstanceIdListenerService:
Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present

我已经在两个可见的AndroidManifest.xml中进行了更改,但根据这个日志,我还没有添加android:导出的

您是否添加了android:exported="真";在你的android/app/src/main/AndroidManifest.xml文件中这样的内部操作:

<application
.... >
<activity
...
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application> 

相关内容

最新更新