android studio 新手,真机测试小米2s,总是报错no debuggable applications,求助大神

AS新手,真机连上可是一直是no debuggable applications,采用网上的一些方法勾选了enable adb integration,还是没有变,,然后又更改了gradle中的设置,如图

,反而编译失败了。。新手,不知道怎么根据logcat追根溯源找出问题,请教大神指点指点


这是部分logcat:
07-07 17:37:41.415 771-998/? E/InputDispatcher: channel '3c0763c9 com.android.contacts/com.android.contacts.activities.TwelveKeyDialer (server)' ~ Channel is unrecoverably broken and will be disposed!
07-07 17:37:41.625 771-1010/? E/WifiConfigStore: setLastSelectedConfiguration -1
07-07 17:37:41.855 278-278/? E/lowmemorykiller: Error opening /proc/27344/oom_score_adj; errno=2
07-07 17:37:41.855 278-278/? E/lowmemorykiller: Error opening /proc/27344/oom_score_adj; errno=2
07-07 17:37:41.976 278-278/? E/lowmemorykiller: Error opening /proc/27632/oom_score_adj; errno=2
07-07 17:37:41.976 278-278/? E/lowmemorykiller: Error opening /proc/27632/oom_score_adj; errno=2
07-07 17:37:41.976 278-278/? E/lowmemorykiller: Error opening /proc/27632/oom_score_adj; errno=2
07-07 17:37:41.976 278-278/? E/lowmemorykiller: Error opening /proc/27632/oom_score_adj; errno=2
07-07 17:37:41.976 278-278/? E/lowmemorykiller: Error opening /proc/27632/oom_score_adj; errno=2
07-07 17:37:42.026 278-278/? E/lowmemorykiller: Error opening /proc/28210/oom_score_adj; errno=2
07-07 17:37:44.558 3000-3017/? E/MmsService: MmsConfigManager.load -- empty getActiveSubInfoList
07-07 17:37:44.558 3000-3018/? E/MmsService: MmsConfigManager.load -- empty getActiveSubInfoList
07-07 17:37:45.149 3025-3025/? E/WhetstoneSDK-JNI: on Load native Whetstone
07-07 17:37:45.249 3025-3041/? E/SQLiteLog: (283) recovered 58 frames from WAL file /data/user/0/com.android.browser/databases/browser2.db-wal
07-07 17:37:48.722 2923-3086/? E/MI_STAT: can not get ip
07-07 17:37:48.722 2923-3086/? E/MI_STAT: Upload MiStat data failed
07-07 17:37:52.005 771-1466/? E/DatabaseUtils: Writing exception to parcel
java.lang.SecurityException: Permission denial: writing to settings requires android.permission.WRITE_SETTINGS
at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:750)
at android.content.ContentProvider$Transport.call(ContentProvider.java:376)
at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:282)
at android.os.Binder.execTransact(Binder.java:446)
07-07 17:37:52.005 3110-3110/? E/AD-MIUI: reset Aaaid exception:
java.lang.reflect.InvocationTargetException
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
2016-07-07 20:57 添加评论 分享
已邀请:

最佳回复

1

Trident - 90后

赞同来自: ask

自己解决了,首先是gradle文件中 compileSdkVersion 23和 buildToolsVersion "23.0.2"版本要一致,我原来的buildToolsVersion 是24.0.0,修改gradle后,AS会提示,按照提示同步(sync),下载相关安装包,解决。
然后连接好手机后,将D:\Andriod\AndroidStudioWorkPlace\Shopping\app\build\outputs\apk中的app导入手机安装运行,此时AS中才会有相关application反应,一遍运行,logcat会一边产生相关信息

要回复问题请先登录注册

退出全屏模式 全屏模式 回复