我使用的是三星galaxy nexus手机(Android 4.0平台).
我正在Ubuntu linux操作系统上开发Android应用程序.我想直接在三星手机设备上运行我的应用程序,所以我执行了以下设置步骤:
在我的project
AndroidManifest.xml
文件中,在<application>
元素中添加了android:debuggable="true"
On the device, in the Settings > Security enabled Unknown sources
On the device, in the Settings > Developer options enabled USB debugging
-
在我的计算机上,创建了包含以下内容的
/etc/udev/rules.d/51-android.rules
文件:SUBSYSTEM=="usb", ATTR{idVendor}=="04E8", MODE="0666", GROUP="plugdev"
在我的电脑上,运行
chmod a+r /etc/udev/rules.d/51-android.rules
命令
然后,在我的电脑上,我打开一个终端,执行adb devices
命令,我得到:
List of devices attached
???????????? no permissions
因为我没有看到我的设备,但只有???????????? no permissions
个,所以我运行以下命令:
adb kill-server
adb start-server
adb devices
但我仍然有:
List of devices attached
???????????? no permissions
为什么?我错过了什么?