应用程序在模拟器上运行但不在设备上

时间:2015-04-14 02:30:23

标签: android android-studio android-emulator device

我在android studio中开发的应用程序在我的模拟器上完美运行但由于某些原因,当我尝试在我的设备上安装/运行它时,屏幕上没有显示任何内容(我有三星Galaxy Note Edge)。我尝试在不同的项目上运行它,它工作得非常好。如果有人遇到这个问题,请帮助。我有正确的驱动程序,并重新启动我的设备和Android工作室,谢谢你的帮助!

以下是事件日志:

Waiting for device.
Target device: samsung-samsung_sm_n915a-190dd827
Uploading file
    local path: C:\Users\Dave\Desktop\Sample Code\Sample Code finalized\LiveWallPaperTake_3\app\build\outputs\apk\app-debug.apk
    remote path: /data/local/tmp/wallpaper_live.com.dave.livewallpapertake_3
No apk changes detected. Skipping file upload, force stopping package instead.
DEVICE SHELL COMMAND: am force-stop wallpaper_live.com.dave.livewallpapertake_3
Launching application: wallpaper_live.com.dave.livewallpapertake_3/wallpaper_live.com.dave.livewallpapertake_3.OpenGLES20Activity.
DEVICE SHELL COMMAND: am start -n "wallpaper_live.com.dave.livewallpapertake_3/wallpaper_live.com.dave.livewallpapertake_3.OpenGLES20Activity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=wallpaper_live.com.dave.livewallpapertake_3/.OpenGLES20Activity }
java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=wallpaper_live.com.dave.livewallpapertake_3/.OpenGLES20Activity } from null (pid=5184, uid=2000) not exported from uid 10038
at android.os.Parcel.readException(Parcel.java:1540)
at android.os.Parcel.readException(Parcel.java:1493)
at android.app.ActivityManagerProxy.startActivityAsUser(ActivityManagerNative.java:2553)
at com.android.commands.am.Am.runStart(Am.java:768)
at com.android.commands.am.Am.onRun(Am.java:307)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:102)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:255)

0 个答案:

没有答案