Permission denied: checkComponentPermission() owningUid=10028的解决

来源:互联网 发布:php上传apk文件 编辑:程序博客网 时间:2024/05/09 03:34

在调用其他activity时logcat报出Permission denied: checkComponentPermission() owningUid=10028的警告,解决方式是在需要调的activity的属性后面加上android:exported="true"就可以了。

例如:<activity android:name="com.test.MainActivity" android:exported="true"></activity>

0 0