Android-java.lang.SecurityException: 权限拒绝: 开始的意图

解决方法:

例外情况是清楚的。您需要设置 android:exported="true" AndroidManifest.xml 文件在你宣布这活动中。

编辑

<activity
   
android:name="com.example.lib.MainActivity"
   
android:label="LibMain"
   
android:exported="true">
   
<intent-filter>
       
<action android:name="android.intent.action.MAIN" >
       
</action>
   
</intent-filter>
</activity>
android:exported="true"  这个必须设置为true 才可以启动app,需要跟研发沟通这块的设置

猜你喜欢

转载自blog.csdn.net/qq_30353203/article/details/80061335
今日推荐