我正在尝试在我的设备中运行一个简单的应用程序我正在使用GALAXY S5但应用程序永远不会启动,在Android Studio中,日志猫只是加载和加载如下:
-10 19:07:07.856 3006-3006/? D/STATUSBAR-IconMerger﹕ checkOverflow(576), More:false, Req:false Child:3
08-10 19:07:08.836 3006-3006/? D/STATUSBAR-NetworkController onSignalStrengthsChanged signalStrength=SignalStrength: 99 -1 -1 -1 -1 -1 -1 13 -121 -13 16 -1 2147483647 gsm|lte 0x0 level=0
08-10 19:07:09.306 912-6264/? D/SSRMv2:SIOP﹕ SIOP:: AP = 280, PST = 287, Delta = -1
08-10 19:07:09.316 912-6264/? D/AmoledAdjustTimer﹕ prevTemp = 264, currTemp = 264, prevStep = 4, currStep = 4
08-10 19:07:09.866 3006-3006/? D/STATUSBAR-NetworkController﹕ refreshSignalCluster - setNWBoosterIndicators(false)
08-10 19:07:09.866 3006-3006/? D/STATUSBAR-NetworkController﹕ refreshSignalCluster: data=0 bt=false
08-10 19:07:09.886 3006-3006/? D/STATUSBAR-IconMerger﹕ checkOverflow(576), More:false, Req:false Child:3
08-10 19:07:09.916 912-3520/? D/BatteryService﹕ level:100, scale:100, status:5, health:2, present:true, voltage: 4372, temperature: 263, technology: Li-ion, AC powered:false, USB powered:true, Wireless powered:false, icon:17303678, invalid charger:0, online:6, current avg:1000, charge type:0, power sharing:false
这是控制台:
Installing com.example.juano.stiktag
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.juano.stiktag"
pkg:/data/local/tmp/com.example.juano.stiktag 成功
Launching application:com.example.juano.stiktag/com.example.juano.stiktag.LoginActivity.
DEVICE SHELL COMMAND: am start -n "com.example.juano.stiktag/com.example.juano.stiktag.LoginActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat= [android.intent.category.LAUNCHER] cmp=com.example.juano.stiktag/.LoginActivity }
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.example.juano.stiktag/.LoginActivity } from null (pid=13739, uid=2000) not exported from uid 10247
at android.os.Parcel.readException(Parcel.java:1465)
at android.os.Parcel.readException(Parcel.java:1419)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2367)
at com.android.commands.am.Am.runStart(Am.java:680)
at com.android.commands.am.Am.onRun(Am.java:270)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:76)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:301)
有时它完成但仍然无法启动应用程序,但是在虚拟设备工作中,我尝试按照android studio网站上的所有步骤启用usb调试器,请任何帮助将非常感谢,谢谢!