Android - 在 SDK 2.1 上运行应用程序
基本上,我已经购买了 HTC Hero (Android sdk 1.5),但我刚刚收到“系统软件更新”的通知,我同意将 sdk 更新到 2.1-update1 。
我成功地为 android sdk 1.5 开发了应用程序,但现在我已经为 Android sdk 2.1 创建了一个 Hello world 应用程序,然后当我尝试在更新的手机上运行它时,此时会显示以下屏幕:
在哪里可以看到 ??????序列号和 Taget 显示为“未知”。
在控制台窗口上,显示错误:“自动目标模式:无法检测设备兼容性。”
(第一个问题):我需要做什么来运行我正在开发的应用程序(sdk 2.1)?请告诉我
,当我尝试使用 USB 数据线连接手机时,它会显示一个有关“选择连接类型:”的警告对话框,显示以下选项:
- 仅充电
- HTC 同步
- 磁盘驱动器
- 互联网共享
(2dn 问题):那么我应该选择哪种模式来开发应用程序并在手机上运行它。
Basically, i have purchased HTC Hero (Android sdk 1.5) , but i just got the notification of "System software update" and i agreed to update the sdk to 2.1-update1 .
I was developing application for android sdk 1.5 successfully, but now i have created a Hello world application for the Android sdk 2.1 and then when i am trying to run it on my updated phone, at that time below screen is showing up:
where you can see ?????? in serial number and Taget is shown as "unknown".
On console window, it is showing up an error: "Automatic Target Mode: Unable to detect device compatibility."
(1st question): What i need to do to run the application(sdk 2.1) which i am developing ? pls let me know
And ya, when i am trying to connect phone using USB cable, it is showing an alert dialog regarding "Choose a connection type:" showing below options:
- Charge only
- HTC Sync
- Disk drive
- Internet Sharing
(2dn question): so which mode should i select for the development of application and running it on phone.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许你的 udev 规则需要修改。请阅读本指南来修复它们。我不知道为什么 SDK 升级应该修改这个,但我认为这可能是你的问题。
Maybe your udev rules have to be modified. Read this guide to fix them. I don't know why a SDK upgrade should have modified this, but I think this might be your problem.