今天午饭前我拿到了三星 GT-i9250 Galaxy Nexus - 冰淇淋三明治。我们将使用它来开发 3D Native Apps。
如您所见,我做了通常的步骤:
连接 USB 然后在终端上运行命令行:
$ adb devices List of devices attached 0149C6F617016002 device $ lsusb | grep 04e8 Bus 002 Device 003: ID 04e8:6860 Samsung Electronics Co., Ltd
然后设置文件:
# nano /etc/udev/rules.d/91-android.rules SUBSYSTEM==”usb”, ATTRS{idVendor}==”04e8″, SYMLINK+=”android_adb”, MODE=”0666″
关闭了文件。然后:
chmod 644 /etc/udev/rules.d/91-android.rules
service udev restart
- 编译:
接下来我编译了程序并尝试在安卓智能手机上运行它。编译器显示我的 Android 设备通过 USB 连接,并要求我选择它来运行程序。然后:
Android Launch!
adb is running normally.
Performing android.app.NativeActivity activity launch
Automatic Target Mode: Unable to detect device compatibility. Please select a target device.
ERROR: Application requires API version 15. Device API version is 14 (Android 4.0.2).
Launch cancelled!
那么,我的设备应该更新吗?怎么做?