java.lang.SecurityException:权限拒绝:启动意图 { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]

2024-04-17

启动时出错activity,不幸的是,我认为它与该项目没有严格联系,因为该应用程序启动于genymotion模拟器,但不在物理设备上。

当我跑步时adb devices与真实的连接后我得到:

List of devices attached 
0009215b1eef4f  device

AndroidManifest.xml没有设置任何所需的权限并且设备有足够的权限api version.

Regards


只需添加:

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

on AndroidManifest.xml进入标签:

<activity>

希望能帮助到你

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

java.lang.SecurityException:权限拒绝:启动意图 { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] 的相关文章

随机推荐